tags 375927 + patch thanks Otavio Salvador wrote: > Hello, > > Since I lack a development machine running with RAID I cannot check > the file myself. Can you provide a patch to use it instead of mdadm? > > I want to upload a new grub release next week if possible fixing it > for d-i RC3. >
Hi Otavio, please find the attached patch. I tried to make it as small as possible to not introduce new bugs. I tested it on sarge, etch and unstable. Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
--- debian/update-grub.orig 2006-07-03 20:44:38.000000000 +0200 +++ debian/update-grub 2006-07-03 21:28:54.000000000 +0200 @@ -136,8 +136,8 @@ [ "$raidlevel" = "raid1" ] || return 1 # Take only the first device that makes up the raid - raiddev=$(mdadm -D -b $1 | grep "^ devices=" | \ - sed "s/^ devices=//" | cut -d"," -f1) + raiddev=$(mdadm -D $1 | grep -A1 "Number" | grep "dev" | \ + sed "s/^.*\(\/dev\/.*\)$/\1/") [ -n "$raiddev" ] || return 1 echo $raiddev
signature.asc
Description: OpenPGP digital signature