[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH mkinitrd rhel-5.4] Do not try to activate raid10 sub sets
- From: Hans de Goede <hdegoede redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: [PATCH mkinitrd rhel-5.4] Do not try to activate raid10 sub sets
- Date: Mon, 27 Jul 2009 14:13:44 +0200
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\""
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]