mirror of
https://github.com/systemd/systemd.git
synced 2025-09-01 13:59:26 +03:00
rules: dm - add escape for uuid links with whitespace
This commit is contained in:
@ -9,7 +9,7 @@ IMPORT{program}="/sbin/dmsetup export -j%M -m%m"
|
|||||||
ENV{DM_NAME}!="?*", GOTO="device_mapper_end"
|
ENV{DM_NAME}!="?*", GOTO="device_mapper_end"
|
||||||
|
|
||||||
SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}", OPTIONS+="string_escape=replace"
|
SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}", OPTIONS+="string_escape=replace"
|
||||||
ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}"
|
ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}", OPTIONS+="string_escape=replace"
|
||||||
|
|
||||||
ENV{DM_STATE}=="SUSPENDED", GOTO="device_mapper_end"
|
ENV{DM_STATE}=="SUSPENDED", GOTO="device_mapper_end"
|
||||||
ENV{DM_TARGET_TYPES}=="|*error*", GOTO="device_mapper_end"
|
ENV{DM_TARGET_TYPES}=="|*error*", GOTO="device_mapper_end"
|
||||||
|
Reference in New Issue
Block a user