mirror of
https://github.com/systemd/systemd.git
synced 2025-02-25 21:57:32 +03:00
rules: avoid mounting raid devices too early
/dev/md0 appears as soon as the first component of the raid array is added by incremental assembly rules. This is too early for systemd to attempt to mount the device. The device should be considered plugged after the raid array becomes active. https://bugzilla.redhat.com/show_bug.cgi?id=767561
This commit is contained in:
parent
81cf1c43c9
commit
a96e4839d5
@ -19,6 +19,9 @@ SUBSYSTEM=="block", KERNEL!="ram*|loop*", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=
|
||||
|
||||
SUBSYSTEM=="block", KERNEL!="ram*|loop*", ENV{DM_UUID}=="CRYPT-*", ENV{ID_PART_TABLE_TYPE}=="", ENV{ID_FS_USAGE}=="", ENV{SYSTEMD_READY}="0"
|
||||
|
||||
# Ignore raid devices that are not yet assembled and started
|
||||
SUBSYSTEM=="block", KERNEL=="md*", ATTR{md/array_state}=="|clear|inactive", ENV{SYSTEMD_READY}="0"
|
||||
|
||||
# We need a hardware independent way to identify network devices. We
|
||||
# use the /sys/subsystem path for this. Current vanilla kernels don't
|
||||
# actually support that hierarchy right now, however upcoming kernels
|
||||
|
Loading…
x
Reference in New Issue
Block a user