Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947314 - sys-fs/lvm2-2.03.22-r7: installs udev rule that causes cryptsetup stuck on systems without systemd
Summary: sys-fs/lvm2-2.03.22-r7: installs udev rule that causes cryptsetup stuck on sy...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2025-01-01 17:38 UTC by Dmitriy Baranov
Modified: 2025-01-06 03:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch (lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch,686 bytes, patch)
2025-01-01 17:47 UTC, Dmitriy Baranov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy Baranov 2025-01-01 17:38:21 UTC
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
Comment 1 Dmitriy Baranov 2025-01-01 17:47:04 UTC
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
Comment 2 Dmitriy Baranov 2025-01-01 17:52:26 UTC
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