Skip to content

Commit b8fa625

Browse files
yuwatabluca
authored andcommitted
udev: revert workarounds for issues caused by the devlink creation optimization
This reverts the following two commits: - "udev: decrease devlink priority for encrypted partitions" c4521fc. - "udev: decrease devlink priority for iso disks" df1dccd. These commits are workarounds for issues caused by 331aa7a. With the previous commit, these workarounds are not necessary anymore, as partitions are always processed later than their whole disk, and a decrypted volume is also processed later than its backing volume. (cherry picked from commit 4ef83d9)
1 parent 277cb24 commit b8fa625

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

rules.d/60-persistent-storage.rules.in

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,6 @@ KERNEL!="sr*|mmcblk[0-9]boot[0-9]", IMPORT{builtin}="blkid"
134134
LABEL="persistent_storage_blkid_probe_end"
135135
{% endif %}
136136

137-
# Decrease devlink priority for whole disk of ISO hybrid images, and make the
138-
# priority for partitions in the image relatively higher. This is for the case
139-
# that a disk and one of its partition have the same label or so.
140-
# See issue #28468.
141-
ENV{ID_FS_TYPE}=="iso9660", ENV{DEVTYPE}=="disk", OPTIONS+="link_priority=-10"
142-
143-
# Decrease devlink priority for encrypted partitions, and make the priority for
144-
# decrypted DM devices relatively higher. This is for the case that an encrypted
145-
# partition and its decrypted DM device have the same label.
146-
ENV{ID_FS_USAGE}=="crypto", OPTIONS+="link_priority=-10"
147-
148137
# by-label/by-uuid links (filesystem metadata)
149138
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
150139
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"

0 commit comments

Comments
 (0)