FS#76518 - [systemd] 252.1-1 fails to boot because of swap on LVM on LUKS not found
Attached to Project:
Arch Linux
Opened by solsTiCe (zebul666) - Friday, 11 November 2022, 02:49 GMT
Last edited by Toolybird (Toolybird) - Sunday, 13 November 2022, 05:45 GMT
Opened by solsTiCe (zebul666) - Friday, 11 November 2022, 02:49 GMT
Last edited by Toolybird (Toolybird) - Sunday, 13 November 2022, 05:45 GMT
|
Details
My setup:
LVM in LUKS with root partition and swap as PV. Since systemd-252.1 it fails to complete the boot because it halts at waiting for /dev/thevgname/swap device indefinitely First, I tried to fix it by removing the resume= options in kernel parameters. But, no change Then, commented the line about swap in /etc/fstab. Rerun, mkinitcpio -P, just in case. During my trials, it did work once, but I don't know why, and coulnd' reproduce later on. I had to revert to systemd-251 I don't think this is relevant but I have to say that I am using Secure Boot, booting with systemd-boot and shim method. everyhting is fine with systemd-251.7-4 |
This task depends upon
Closed by Toolybird (Toolybird)
Sunday, 13 November 2022, 05:45 GMT
Reason for closing: None
Additional comments about closing: Reporter says "After finding the real issue, this is working for me now"
Sunday, 13 November 2022, 05:45 GMT
Reason for closing: None
Additional comments about closing: Reporter says "After finding the real issue, this is working for me now"
I need to test those units to see if it helps. Too late for that today
I have a somewhat similar issue while using busybox. If I have the `resume` hook, it won't load some modules (in my case zfs). The resume partition is a plain dm-crypt partition and is loaded OK. `mkinitcpio` doesn't complain about anything. Reverting to systemd 251.7 fixes the issue.
$ grep -v ^# /etc/mkinitcpio.conf |grep HOOKS
HOOKS=(base systemd autodetect modconf keyboard sd-vconsole block sd-encrypt lvm2 filesystems fsck)
$ grep -v ^# /etc/sbupdate.conf |grep CMDLINE
CMDLINE_DEFAULT="quiet loglevel=3 systemd.show_status=auto rd.udev.log_level=3 vt.global_cursor_default=0 root=/dev/a2000vg/root rd.luks.name=12345678-1234-1234-1234-123456789012=a2000luks rd.luks.options=discard,keyfile-offset=12345,keyfile-size=2048 rd.luks.key=/dev/disk/by-id/usb-hp_yyyy_XXXXXXXXXXXXX-0:0 resume=/dev/a2000vg/swap
$ grep -v ^# /etc/fstab |grep swap
UUID=1111111-1111-4444-aaaa-123456789012 none swap defaults,pri=20 0 0
/dev/mapper/swap none swap defaults,pri=10 0 0
It turns out the root cause is a systemd bug: https://github.com/systemd/systemd/issues/25201
For me, this is working with latest sbupdate-git, because it includes a work-around for the systemd bug(?).
FS#76468