Blame SOURCES/mdadm-udev.patch
|
|
37f2b0 |
--- mdadm/udev-md-raid-assembly.rules.orig 2023-01-06 16:37:03.780756100 +0800
|
|
|
37f2b0 |
+++ mdadm/udev-md-raid-assembly.rules 2023-01-06 17:04:09.536159980 +0800
|
|
|
37f2b0 |
@@ -5,6 +5,9 @@
|
|
|
37f2b0 |
ENV{ANACONDA}=="?*", GOTO="md_inc_end"
|
|
|
37f2b0 |
# assemble md arrays
|
|
|
37f2b0 |
|
|
|
37f2b0 |
+# Also don't process disks that are slated to be a multipath device
|
|
|
37f2b0 |
+ENV{DM_MULTIPATH_DEVICE_PATH}=="1", GOTO="md_inc_end"
|
|
|
37f2b0 |
+
|
|
|
37f2b0 |
SUBSYSTEM!="block", GOTO="md_inc_end"
|
|
|
37f2b0 |
|
|
|
37f2b0 |
# skip non-initialized devices
|
|
|
37f2b0 |
@@ -33,6 +36,13 @@
|
|
|
37f2b0 |
|
|
|
37f2b0 |
LABEL="md_inc"
|
|
|
37f2b0 |
|
|
|
37f2b0 |
+# Make sure we don't handle dm devices when some limits are set.
|
|
|
37f2b0 |
+# And linux_raid_member only be set when change/remove event happen.
|
|
|
37f2b0 |
+# So we don't need to consider add event here.
|
|
|
37f2b0 |
+KERNEL=="dm-*", ENV{DM_UDEV_RULES_VSN}!="?*", GOTO="md_inc_end"
|
|
|
37f2b0 |
+KERNEL=="dm-*", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="md_inc_end"
|
|
|
37f2b0 |
+KERNEL=="dm-*", ENV{DM_SUSPENDED}=="1", GOTO="md_inc_end"
|
|
|
37f2b0 |
+
|
|
|
37f2b0 |
# Bare disks are ready when add event happens, the raid can be assembled.
|
|
|
37f2b0 |
ACTION=="change", KERNEL!="dm-*|md*", GOTO="md_inc_end"
|
|
|
37f2b0 |
|