Antonio Feijoo changed bug 1219020
What Removed Added
Flags needinfo?  

Comment # 15 on bug 1219020 from Antonio Feijoo
(In reply to Dmitry Markov from comment #14)
> (In reply to Antonio Feijoo from comment #13)
> > With the following actions I managed to make it work:
> > - Set `resume=/dev/mapper/cr_swap` on the kernel command line.
> > - Remove `add_device+=" UUID=... "` from /etc/dracut.conf.d/99-resume.conf
> > - In /etc/crypttab, append the following two options to the cr_swap entry
> > (4th column): x-initrd.attach,force
> > - Run `dracut -f`
> > - Reboot and try again `systemctl hibernate`.
> > 
> > If it does not work in your system, add `systemd.log_level=debug` and attach
> > the output of `journalctl -b -o short-monotonic`. Thanks.
> 
> I'm back with good news

I'm glad to hear that.

> As I understand it, adding `x-initrd.attach` to crypttab helped.

The keys are setting the right `resume=` device (available after decryption)
and the `force` option in crypttab (dracut skips crypttab entries with key
files for unknown reason, see
https://github.com/dracutdevs/dracut/issues/2128#issuecomment-1353362957)

> Now hibernation works as it should. it might make sense to note this in the
> documentation from the first comment.

Yes, definitely.

> wi-fi does not work when waking up, but this is not the topic of this
> bugreport.

That reminds me of bug #1219427

> thanks for help!

Anytime.


You are receiving this mail because: