]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: set ID_IGNORE_DISKSEQ for md devices
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Apr 2022 14:09:14 +0000 (23:09 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Apr 2022 15:12:02 +0000 (00:12 +0900)
rules.d/50-udev-default.rules.in

index 9cdaadb4cd5f4be9e3475fbd9f358ef725bd05e4..0394530479d8b2db369d7718f459ac58264596d9 100644 (file)
@@ -4,6 +4,10 @@
 ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}"
 ACTION=="remove", GOTO="default_end"
 
+# The md driver increments diskseq *after* emitting 'change' uevent.
+# Drop the line below if it is fixed on the kernel side.
+SUBSYSTEM=="block", KERNEL=="md*", ENV{ID_IGNORE_DISKSEQ}="1"
+
 SUBSYSTEM=="virtio-ports", KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"
 
 # select "system RTC" or just use the first one