summaryrefslogtreecommitdiff
path: root/debian/initramfs/script.local-top
diff options
context:
space:
mode:
authormadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-10-25 17:56:35 +0000
committermadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-10-25 17:56:35 +0000
commitc5811d56a5fd3be688c5e2323c50f396c1c02b5c (patch)
tree7143221d1025d0af140e0a0a60d918987ff5f5fb /debian/initramfs/script.local-top
parent3a102a0b6737149e97b69f59f2f6bc6e1331e87a (diff)
* Send udev events for arrays assembled from the initramfs or by the init
script (closes: #394193). I unconditionally send events for all arrays that have been assembled to this point -- it does not matter if an event is sent twice.
Diffstat (limited to 'debian/initramfs/script.local-top')
-rw-r--r--debian/initramfs/script.local-top9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/initramfs/script.local-top b/debian/initramfs/script.local-top
index 621f617a..0f5f52d4 100644
--- a/debian/initramfs/script.local-top
+++ b/debian/initramfs/script.local-top
@@ -106,4 +106,13 @@ elif [ "$MD_DEVS" != none ]; then
done
fi
+verbose && log_begin_msg "Triggering udev events for assembled arrays"
+for uevent in /sys/block/md*/uevent; do
+ test -w $uevent || continue
+ echo add > $uevent
+ uevent=${uevent#/sys/block/}
+ verbose && log_success_msg "triggered uevent for ${uevent%/uevent}"
+done
+verbose && log_end_msg
+
exit 0