]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/grub-0.97-mdadm-path.patch
kernel: updated rpi patches to 091073b.
[people/teissler/ipfire-2.x.git] / src / patches / grub-0.97-mdadm-path.patch
1 --- grub-0.97/util/grub-install.in.mdadm-path 2005-12-12 18:42:23.000000000 -0500
2 +++ grub-0.97/util/grub-install.in 2005-12-12 18:44:15.000000000 -0500
3 @@ -30,5 +30,6 @@
4 pkglibdir=${libdir}/${PACKAGE}/${host_cpu}-${host_vendor}
5
6 grub_shell=${sbindir}/grub
7 +mdadm=${sbindir}/mdadm
8 log_file=/tmp/grub-install.log.$$
9 img_file=/tmp/grub-install.img.$$
10 @@ -217,7 +218,7 @@
11 is_raid1_device () {
12 case "$host_os" in
13 linux*)
14 - level=`mdadm --query --detail $1 2>/dev/null | \
15 + level=`$mdadm --query --detail $1 2>/dev/null | \
16 awk '/Raid Level :/ {print $4}'`
17 if [ "$level" = "raid1" ]; then
18 return 0
19 @@ -236,7 +237,7 @@
20 linux*)
21 if is_raid1_device $source_device ; then
22 list=""
23 - for device in `mdadm --query --detail "${source_device}" | \
24 + for device in `$mdadm --query --detail "${source_device}" | \
25 awk '/\/dev\/[^(md)]/ {print $7}'` ; do
26 list="$list $device"
27 done