Re: udev rule bug: LUKS on LVM doesn't expose labels
Peter Rajnoha <[email protected]> Mon, 25 Mar 2024 10:33:17 +0100
| Newsgroups | gmane.linux.lvm.devel |
|---|---|
| Message-ID | <[email protected]> |
On 3/22/24 19:18, Patrick Plenefisch wrote:
> Hi,
>
> I noticed that my LUKS-on-LVM setup wasn't generating
> /dev/disk/by-label symlinks. After some poking around, I realized that
> the udev rule doesn't include crypto devices:
>
> udev/13-dm-disk.rules.in:40
>
> ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*",
> SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
>
> In contrast, the uuid rule does support crypto devices:
>
> udev/13-dm-disk.rules.in:39
>
> ENV{ID_FS_USAGE}=="filesystem|other|crypto",
> ENV{ID_FS_UUID_ENC}=="?*",
> SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
>
> Adding "|crypto" to the label rule and everything seems to work fine
> on my end. Is there some other behavior I'm missing here, or is this a
> bug in the udev rules?
Yes, indeed, it's missing. Thank you for reporting that!
Fixed here: https://gitlab.com/lvmteam/lvm2/-/commit/f09a9927207f81b33b9eee8ac5660d90e695dad1
--
Peter