ChimeraOS / frzr

A deployment and automatic update mechanism for operating systems
MIT License
59 stars 14 forks source link

Allow resume from hibernation #58

Closed NeroReflex closed 2 months ago

NeroReflex commented 7 months ago

This PR is aimed at appending to kernel boot parameters the btrfs offset and uuid of the file /home/swapfile when such file is present.

This in turn allows an initramfs that was generated with mkinitcpio containtaining the "resume" hook so resume from hibernation.

This PR is therefore required to support sleeping consoles that only supports S5 status.

alkazar commented 6 months ago

Very nice. But I don't think this will work after install since the swapfile does not exist yet. It is created by a service on first boot.