mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
udev: decrease devlink priority for encrypted partitions
Decrease devlink priority for encrypted partitions, and make the priority for decrypted DM devices relatively higher. This is for the case that an encrypted partition and its decrypted DM device have the same label.
This commit is contained in:
committed by
Luca Boccassi
parent
28fd786bf5
commit
c4521fc17b
@@ -138,6 +138,11 @@ LABEL="persistent_storage_blkid_probe_end"
|
||||
# See issue #28468.
|
||||
ENV{ID_FS_TYPE}=="iso9660", ENV{DEVTYPE}=="disk", OPTIONS+="link_priority=-10"
|
||||
|
||||
# Decrease devlink priority for encrypted partitions, and make the priority for
|
||||
# decrypted DM devices relatively higher. This is for the case that an encrypted
|
||||
# partition and its decrypted DM device have the same label.
|
||||
ENV{ID_FS_USAGE}=="crypto", OPTIONS+="link_priority=-10"
|
||||
|
||||
# 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|crypto", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
|
||||
|
||||
Reference in New Issue
Block a user