diff options
author | Milan Broz <gmazyland@gmail.com> | 2018-05-15 16:51:07 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-05-15 16:51:07 +0200 |
commit | f2bd752215cba2f90697edd7e3ff5e859a6b9a4c (patch) | |
tree | 5464856865b51f35da12dd8a3d2540c5c6181b5c /rules | |
parent | sysusers: drop an unused variable (diff) | |
download | systemd-f2bd752215cba2f90697edd7e3ff5e859a6b9a4c.tar.gz systemd-f2bd752215cba2f90697edd7e3ff5e859a6b9a4c.tar.bz2 systemd-f2bd752215cba2f90697edd7e3ff5e859a6b9a4c.zip |
udev: create /dev/disk/by-label symlink for LUKS2 (#8998)
LUKS2 header supports to device label and blkid since 2.32 version
already supports this option.
Persistent udev storage rules should create symlink for this label.
For older devices this value is not set so changed rule should be compatible.
Diffstat (limited to 'rules')
-rw-r--r-- | rules/60-persistent-storage.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/60-persistent-storage.rules b/rules/60-persistent-storage.rules index 0de8cf3a1..8ddb7577c 100644 --- a/rules/60-persistent-storage.rules +++ b/rules/60-persistent-storage.rules @@ -91,7 +91,7 @@ KERNEL!="sr*", IMPORT{builtin}="blkid" # by-label/by-uuid links (filesystem metadata) 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_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}" # by-id (World Wide Name) ENV{DEVTYPE}=="disk", ENV{ID_WWN_WITH_EXTENSION}=="?*", SYMLINK+="disk/by-id/wwn-$env{ID_WWN_WITH_EXTENSION}" |