[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

PATCH [rhel-5.4 mkinitrd dmraid] add --rm_partitions to dmraid invocation



Hi All,

This patch fixes the io errors seen during boot on striped dmraid setups

Regards,

Hans

diff -up mkinitrd-5.1.19.6/mkinitrd~ mkinitrd-5.1.19.6/mkinitrd
--- mkinitrd-5.1.19.6/mkinitrd~	2009-05-11 13:26:07.000000000 +0200
+++ mkinitrd-5.1.19.6/mkinitrd	2009-05-11 13:40:26.000000000 +0200
@@ -1794,7 +1794,7 @@ if [ "$withdmraid" == "1" ]; then
                egrep -iv "^no " | awk -F ':' '{ print $1 }') ; do
         dmname=$(resolve_dm_name $x)
         [ -z "$dmname" ] && continue
-        emit "dmraid -ay -i -p \"$dmname\""
+        emit "dmraid -ay -i -p --rm_partitions \"$dmname\""
         emit "kpartx -a -p p \"/dev/mapper/$dmname\""
     done
 fi

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]