diff --git a/rules/suse/64-device-mapper.rules b/rules/suse/64-device-mapper.rules index cf7be54..13aea7d 100644 --- a/rules/suse/64-device-mapper.rules +++ b/rules/suse/64-device-mapper.rules @@ -18,9 +18,10 @@ ENV{DM_TARGET_TYPES}=="|*error*", GOTO="device_mapper_end" PROGRAM="/sbin/dmsetup deps -j%M -m%m", RESULT=="0 dependencies*", GOTO="device_mapper_end" IMPORT{program}="vol_id --export $tempnode" -OPTIONS+="link_priority=-100" ENV{DM_TARGET_TYPES}=="*snapshot-origin*", OPTIONS+="link_priority=-90" -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_UUID_ENC}=="?*", \ + SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}", OPTIONS+="link_priority=-100" +ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", \ + SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}", OPTIONS+="link_priority=-100" LABEL="device_mapper_end"