[linux-lvm] udev/10-dm.rules.in: unexpectedly skipping device?
michael+lvm at stapelberg.ch
Fri Apr 17 07:42:22 UTC 2020
I’m starting to use LVM (+LUKS) on a computer of mine, but ran into
trouble getting it to work.
The issue I’m running into is that systemd boot hangs until the
default unit timeout elapses. This is because the cryptroot device is
not found, which in turn is because udev doesn’t create the symlinks
(e.g. in /dev/disk/by-uuid). udevadm info shows:
# udevadm info -p /sys/block/dm-0
I pinpointed this result to udev rule
I assume I’m running into this rule because I’m using a custom initrd
which does not run systemd nor udev. Instead, my initrd is directly
calling vgchange -ay and vgmknodes.
I understand that this is not a common setup, but booting without
systemd/udev in the initrd should be supported, no?
I’m not sure where DM_UDEV_PRIMARY_SOURCE_FLAG is supposed to be set,
or why it isn’t set in my scenario. Do you have any ideas regarding
what I could check?
Thanks in advance,
PS: As a workaround, I’m just commenting out that rule. Does that have
any negative consequences?
More information about the linux-lvm