cryptsetup luksOpen gets stuck on the following configuration: $ lsblk --discard --output=MODEL,NAME,SIZE,FSUSED,FSTYPE,TYPE,DISC-MAX,LABEL,MOUNTPOINT /dev/sdc MODEL NAME SIZE FSUSED FSTYPE TYPE DISC-MAX LABEL MOUNTPOINT SSD 970 PRO sdc 953,9G disk 4G └─sdc1 953,9G part 4G └─gentoo970 953,9G LVM2_member crypt 0B ├─vg1-root 32G ext4 lvm 0B root ├─vg1-var 64G ext4 lvm 0B var └─vg1-mnt 857,9G 376G ext4 lvm 0B mnt /mnt/tmp sys-fs/lvm2-2.03.22-r7::gentoo USE="lvm readline udev -sanlock (-selinux) -static -static-libs -systemd -thin -valgrind". cryptsetup is constantly stucked with updated udev rule. Reproducible: Always
Created attachment 915652 [details, diff] lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch Adding an option --noudevsync resolves the problem. Related bugs: https://bugs.gentoo.org/944499 https://bugs.gentoo.org/947185
Related upstream issue: https://gitlab.com/cryptsetup/cryptsetup/-/issues/869 I see the same lethal lines in the logs: # Udev cookie 0xd4dd782 (semid 15) decremented to 1 # Udev cookie 0xd4dd782 (semid 15) waiting for zero