PostmarketOS - Why swap file not on at boot?
#1
I followed the standard arch wiki way to set up a swapfile, and based on 'Install to disk' in the Alpine wiki, which shows setting up a swap partition the normal way, it should work. It does work if I manually turn the swap file on, but it isn't automatically on at boot. I don't know how PmOS works in that there were no other entries in my fstab, but I guess that has something to do with it. any ideas?
  Reply
#2
cat /etc/local.d/zram0.start
#!/bin/sh
modprobe zram
echo 2G > /sys/block/zram0/disksize
mkswap /dev/zram0
swapon /dev/zram0 -p 100


my solution

i realize that isnt what you want but you can just as easilly sneak in a /etc/local.d/swap.start script that swapons's your swap or call mount -a which should source fstab and try to mount everything therein why pmos doesnt do that and other distros do i couldnt tell ya
  Reply
#3
If I understand it right then installing zram-init and zram-init-openrc packages might be an option for most users. What do you guys think?
  Reply
#4
(06-22-2021, 01:59 AM)lusk Wrote: If I understand it right then installing zram-init and zram-init-openrc packages might be an option for most users. What do you guys think?

I think that's reasonable, and potentially useful for other devices that pmOS supports.

https://gitlab.com/postmarketOS/pmaports/-/issues/1133
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  postmarketOS/Alpine edge image for the Pinebook Pro MartijnBraam 72 52,477 09-18-2021, 03:58 PM
Last Post: stozi
Question Can't boot any operating system other than Fedora after following the nullr0ute guide TDC_PBP 0 211 08-01-2021, 03:44 PM
Last Post: TDC_PBP
  Kernel panic on boot with danielt's Debian installer hjalfi 11 1,825 07-09-2021, 08:52 AM
Last Post: moonwalkers
  Good i3 Config file to use? jms429 6 1,171 06-17-2021, 09:38 AM
Last Post: user526
  Official openSUSE: U-Boot, dtb and graphics Jojonintendo 1 566 06-12-2021, 08:38 AM
Last Post: Jojonintendo
  Boot problems jessef 11 1,347 05-16-2021, 11:13 AM
Last Post: djhnsn
  PBP won't boot from eMMC or SD card: a saga archaicmeander 18 3,639 02-06-2021, 07:40 PM
Last Post: wdt
Question Changeing boot animation on Manjaro Anarethos 2 1,581 12-31-2020, 04:46 PM
Last Post: Anarethos
  Unable to boot from SD or USB aviks 8 2,488 12-31-2020, 08:08 AM
Last Post: aviks
  Ubuntu MATE 18.04 Can't boot after update hankg 2 1,037 12-15-2020, 01:53 AM
Last Post: BryanF

Forum Jump:


Users browsing this thread: 1 Guest(s)