summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xupdate-initramfs7
1 files changed, 7 insertions, 0 deletions
diff --git a/update-initramfs b/update-initramfs
index 90a66b4..6f978f3 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -201,6 +201,13 @@ mbr_check()
boot=$(awk -F = '/^boot=/{ print $2}' /etc/lilo.conf)
[ -z "${boot}" ] && return 0
case ${boot} in
+ /dev/md/*)
+ if [ -r /proc/mdstat ]; then
+ MD=${boot#/dev/md/}
+ boot="/dev/$(awk "/^md${MD}/{print substr(\$5, 1, 3)}" \
+ /proc/mdstat)"
+ fi
+ ;;
/dev/md*)
if [ -r /proc/mdstat ]; then
MD=${boot#/dev/}