From: Francois Lesueur Date: Mon, 4 May 2026 15:08:56 +0000 (+0200) Subject: udev: Use LUKS label if present X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;p=thirdparty%2Fmdadm.git udev: Use LUKS label if present Current udev rules do not create udev "by-label" symlinks for crypto volumes. This patch adds these symlinks. Signed-off-by: Francois Lesueur --- diff --git a/udev-md-raid-arrays.rules b/udev-md-raid-arrays.rules index a8098dc5..1157098f 100644 --- a/udev-md-raid-arrays.rules +++ b/udev-md-raid-arrays.rules @@ -32,7 +32,7 @@ OPTIONS+="watch" OPTIONS+="db_persist" ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}" ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_PART_ENTRY_UUID}=="?*", SYMLINK+="disk/by-partuuid/$env{ID_PART_ENTRY_UUID}" -ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}" +ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}" ENV{MD_LEVEL}=="raid[1-9]*", ENV{SYSTEMD_WANTS}+="mdmonitor.service"