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
  Pinebook pro won't boot after bootloader installation jwensouls 4 877 08-21-2024, 04:17 AM
Last Post: KC9UDX
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 3,428 12-11-2023, 03:47 AM
Last Post: calinb
  Boot Order in Pinebook Pro food 8 2,591 11-23-2023, 07:37 AM
Last Post: KC9UDX
  [Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present zackw 1 2,447 08-21-2023, 09:08 PM
Last Post: vanessadonald
  Emergency Mode Boot Hotkey? jiacovelli 20 7,325 06-02-2023, 01:32 PM
Last Post: wdt
  Missing A Few Programs on PostmarketOS on PB Pro publiclewdness 0 748 03-06-2023, 11:33 PM
Last Post: publiclewdness
  Tow Boot install help Paulie420 7 4,878 11-24-2022, 10:24 AM
Last Post: myself600
  Resume from suspend not working after flashing Tow-Boot to SPI xp19375 3 2,483 10-31-2022, 10:14 AM
Last Post: wdt
  Bootloader: SD card boot quirks crazyquark 1 1,369 10-04-2022, 12:27 PM
Last Post: elitegamercody
  postmarketOS/Alpine edge image for the Pinebook Pro MartijnBraam 74 128,409 08-24-2022, 02:06 PM
Last Post: petersen77

Forum Jump:


Users browsing this thread: 1 Guest(s)