[SCM] live-boot branch, debian-next, updated. debian/3.0_a19-1-5-ga5a55ce

Daniel Baumann daniel at debian.org
Thu Aug 4 19:12:57 UTC 2011


The following commit has been merged in the debian-next branch:
commit a5a55ce3588e76557d2550405862709fa542a6a3
Author: Daniel Baumann <daniel at debian.org>
Date:   Thu Aug 4 21:11:34 2011 +0200

    Applying reformated patch from Ulrich Dangel <mru at grml.org> to add support for lvm and md devices.

diff --git a/scripts/live b/scripts/live
index d5ffc6e..82f5413 100755
--- a/scripts/live
+++ b/scripts/live
@@ -1612,6 +1612,35 @@ check_dev ()
 			umount $mountpoint
 		fi
 	fi
+
+	IFS=","
+	for device in ${devname}
+	do
+		case "$device" in
+			*mapper*)
+				# Adding lvm support
+				if [ -x /scripts/local-top/lvm2 ]
+				then
+					ROOT="$device" resume="" /scripts/local-top/lvm2
+				fi
+				;;
+
+			/dev/md*)
+				# Adding raid support
+				if [ -x /scripts/local-top/mdadm ]
+				then
+					cp /conf/conf.d/md /conf/conf.d/md.orig
+					echo "MD_DEVS=$device " >> /conf/conf.d/md
+					/scripts/local-top/mdadm
+					mv /conf/conf.d/md.orig /conf/conf.d/md
+				fi
+				;;
+		esac
+	done
+	unset IFS
+
+	[ -n "$device" ] && devname="$device"
+
 	[ -e "$devname" ] || continue
 
 	if [ -n "${LIVE_MEDIA_OFFSET}" ]

-- 
live-boot



More information about the debian-live-changes mailing list