mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +03:00
rules: fix md rules for partitioned devices
This commit is contained in:
parent
8eb4ab836c
commit
41ac13f49f
@ -11,8 +11,10 @@ KERNEL!="md*", GOTO="md_end"
|
|||||||
ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"
|
ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"
|
||||||
|
|
||||||
IMPORT{program}="/sbin/mdadm --detail --export $tempnode"
|
IMPORT{program}="/sbin/mdadm --detail --export $tempnode"
|
||||||
ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}"
|
ENV{DEVTYPE}=="disk", ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}"
|
||||||
ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}"
|
ENV{DEVTYPE}=="disk", ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}"
|
||||||
|
ENV{DEVTYPE}=="partition", ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}-part%n"
|
||||||
|
ENV{DEVTYPE}=="partition", ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}-part%n"
|
||||||
|
|
||||||
IMPORT{program}="vol_id --export $tempnode"
|
IMPORT{program}="vol_id --export $tempnode"
|
||||||
OPTIONS+="link_priority=100"
|
OPTIONS+="link_priority=100"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user