[PATCH mkinitrd rhel-5.4] Do not try to activate raid10 sub sets

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

 



Hi,

While reproducing some RHEL-5 dmraid 10 bugs I noticed that there is a really ugly error
message when booting systems with / on dmraid 10, the problem is that we also try to
activate the raid 0 subsets which make up the raid 1 set.

The solution is to use a different command to get the set names, which also means we
can get rid of the grep, patch attached.

Peter, do you see any possible down sides to this patch ?

Regards,

Hans
diff -up mkinitrd-5.1.19.6/mkinitrd~ mkinitrd-5.1.19.6/mkinitrd
--- mkinitrd-5.1.19.6/mkinitrd~	2009-07-27 13:18:43.000000000 +0200
+++ mkinitrd-5.1.19.6/mkinitrd	2009-07-27 13:24:18.000000000 +0200
@@ -1812,8 +1812,7 @@ fi
 
 if [ "$withdmraid" == "1" ]; then
     emit "echo Scanning and configuring dmraid supported devices"
-    for x in $(/sbin/dmraid.static -ay -i -p -t 2>/dev/null | \
-               egrep -iv "^no " | awk -F ':' '{ print $1 }') ; do
+    for x in $(/sbin/dmraid.static -s -cr 2>/dev/null) ; do
         dmname=$(resolve_dm_name $x)
         [ -z "$dmname" ] && continue
         emit "dmraid -ay -i -p --rm_partitions \"$dmname\""
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux