mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
rules: md-raid.rules fix
md/array_state in case of partition doesn't exist, so all uevents for partitions didn't execute any SYMLINK rules Signed-off-by: Michal Soltys <soltys@ziu.info>
This commit is contained in:
parent
3d8599873a
commit
376f0a1ef5
@ -8,6 +8,9 @@ ACTION!="add|change", GOTO="md_end"
|
||||
# import data from a raid set
|
||||
KERNEL!="md*", GOTO="md_end"
|
||||
|
||||
# partitions have no md/{array_state,metadata_version}
|
||||
ENV{DEVTYPE}=="partition", GOTO="md_ignore_state"
|
||||
|
||||
# container devices have a metadata version of e.g. 'external:ddf' and
|
||||
# never leave state 'inactive'
|
||||
ATTR{md/metadata_version}=="external:[A-Za-z]*", ATTR{md/array_state}=="inactive", GOTO="md_ignore_state"
|
||||
|
Loading…
x
Reference in New Issue
Block a user