]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
FIXME: support DEVICE partitions for mdadm
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 9 Feb 2008 18:37:15 +0000 (18:37 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 9 Feb 2008 18:37:15 +0000 (18:37 +0000)
svn-id: @9271

geninitrd

index 2fc39dfd28f657c0515a5372ad9b3fa9fce29fe0..b3df398644fa2e60d36d26d02916af0d6b93971b 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -1317,9 +1317,15 @@ initrd_gen_md() {
 
        # LVM on RAID case
        dev_list_extra=$(awk '/^DEVICE / { for (i=2; i<=NF; i++) { printf "%s ", $i; }; } ' /etc/mdadm.conf)
-       for ex_dev in $dev_list_extra; do
-               echo "DEVICE $ex_dev" >> "$DESTDIR/etc/mdadm.conf"
-       done
+       if [ "$dev_list_extra" = "partitions" ]; then
+               # FIXME: handle this case (see man mdadm.conf)
+               echo "DEVICE partitions" >> "$DESTDIR/etc/mdadm.conf"
+               dev_list_extra=""
+       else
+               for ex_dev in $dev_list_extra; do
+                       echo "DEVICE $ex_dev" >> "$DESTDIR/etc/mdadm.conf"
+               done
+       fi
        do_md0=1
        for nr in `seq 1 $rootdev_nr`; do
                eval cr_rootdev="\$rootdev${nr}"
This page took 0.194305 seconds and 4 git commands to generate.