LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Is uswsusp (suspend-utils) usable without initramfs or initrd? (https://www.linuxquestions.org/questions/linux-software-2/is-uswsusp-suspend-utils-usable-without-initramfs-or-initrd-4175536052/)

rivercat 03-07-2015 02:36 PM

Is uswsusp (suspend-utils) usable without initramfs or initrd?
 
"uswsusp" (aka suspend-utils-1.0, or s2disk and s2ram) is a userland frontend for the kernel's "swsusp" suspend/hibernate/resume feature.

Have you compiled uswsusp for use without an initramfs or initrd?

The source's HOWTO states "It is possible to use the suspend tools without any initramfs/initrd images, but it's dangerous and will not be documented here."

raskin 03-29-2015 02:37 PM

The suspend tools don't use initramfs per se; but suspend-to-disk is useless without a way to resume-from-disk.

The current recommended way is to add a resume invocation into initramfs stage-1 init, without init it may still be possible by using kernel parameter, but the setup is more complex, probably requires swap not to be on device-mapper devices (like LVM2), and may break with future kernel updates.


All times are GMT -5. The time now is 04:20 AM.