]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Allow containers in ex devices.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 31 Jan 2016 16:03:18 +0000 (17:03 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 31 Jan 2016 16:03:18 +0000 (17:03 +0100)
mod-md.sh

index 1c5c60c1984cdad2614359802c52d37e53d44486..d9093d4eca3d33386b551f604a0de1a6da89c1b0 100644 (file)
--- a/mod-md.sh
+++ b/mod-md.sh
@@ -146,8 +146,8 @@ initrd_gen_md() {
        dev_list_extra=$(awk '/^DEVICE / { for (i=2; i<=NF; i++) { printf "%s ", $i; }; } ' /etc/mdadm.conf | xargs)
        new_dev_list_extra=""
        for ex_dev in $dev_list_extra; do
-               if [ "$ex_dev" = "partitions" ]; then
-                       echo "DEVICE partitions" >> "$DESTDIR/etc/mdadm.conf"
+               if [ "$ex_dev" = "partitions" -o "$ex_dev" = "containers" ]; then
+                       echo "DEVICE $ex_dev" >> "$DESTDIR/etc/mdadm.conf"
                        # FIXME: find and copy partition devices from /proc/partitions
                        #        - best if done at runtime, now initrd gen time
                        continue
This page took 0.276016 seconds and 4 git commands to generate.