[projects/geninitrd] Allow containers in ex devices.

arekm arekm at pld-linux.org
Sun Jan 31 17:03:21 CET 2016


commit 44c13508fd5b62e82335bea903690609a35de913
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Jan 31 17:03:18 2016 +0100

    Allow containers in ex devices.

 mod-md.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/mod-md.sh b/mod-md.sh
index 1c5c60c..d9093d4 100644
--- 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/44c13508fd5b62e82335bea903690609a35de913



More information about the pld-cvs-commit mailing list