You are not logged in.

#1 2024-09-22 08:56:50

sidion
Member
Registered: 2024-09-22
Posts: 2

hibernate+resume only working with "systemd" in "HOOKS"

when I first had the default "udev" in HOOKS I always got error messages at bootup like "cannot stat resume device"
but there is a swap-partition in place, with definitions in /etc/fstab and /etc/default/grub

afterwards I changed to "systemd" in "HOOKS", and now hibernate+resume is working

any ideas why this isn't working with "udev" ?
and is there anything special to consider when using "systemd" in "HOOKS" ?

Offline

#2 2024-09-22 16:33:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,146

Re: hibernate+resume only working with "systemd" in "HOOKS"

Did you forget to configure the resume hook with the udev hook or place it in the wrong order (you probably want it after filesystem)?

Generally speaking the systemd hook makes the initramfs use systemd tehre's nothing that would be inherently wrong about that. Make sure you've seen the considerations in https://wiki.archlinux.org/title/Mkinitcpio#HOOKS -- sometimes, since your initramfs is now dependant on systemd they could get affected by systemd updates (there was one time a couple years ago where a systemd update broke the systemd based initramfs, don't quite remember the details and afaik it hasn't generally happened anymore)

Offline

#3 2024-09-22 18:30:54

sidion
Member
Registered: 2024-09-22
Posts: 2

Re: hibernate+resume only working with "systemd" in "HOOKS"

yes, one of my tests included also resume hook after filesystem (together with the udev hook), and I always got the mentioned error

anyways, I've found the "workaround" with "systemd" in "HOOKS", and hopefully this new config will work for me in the future

Offline

Board footer

Powered by FluxBB