[SCM] live-boot branch, debian, updated. debian/3.0_a24-1-3-g3b44316

Daniel Baumann daniel at debian.org
Mon Feb 6 22:29:50 UTC 2012


The following commit has been merged in the debian branch:
commit 2b913a034efc31da458036087245591cb6aa6f47
Author: Michal Suchanek <hramrach at centrum.cz>
Date:   Fri Apr 15 11:36:00 2011 +0200

    Add overlayfs support (Closes: #658265).

diff --git a/scripts/live b/scripts/live
index 8ffbc20..5af7ad8 100755
--- a/scripts/live
+++ b/scripts/live
@@ -1208,7 +1208,7 @@ setup_unionfs ()
 	addimage_directory="${3}"
 
 	case ${UNIONTYPE} in
-		aufs|unionfs)
+		aufs|unionfs|overlayfs)
 			modprobe -q -b ${UNIONTYPE}
 
 			if ! cut -f2 /proc/filesystems | grep -q "^${UNIONTYPE}\$" && [ -x /bin/unionfs-fuse ]
@@ -1570,6 +1570,10 @@ setup_unionfs ()
 				mount_full $unionmountopts "${unionmountpoint}"
 				;;
 
+			overlayfs)
+				unionmountopts="-o noatime,${noxino_opt},lowerdir=${unionro},upperdir=${unionrw}"
+				mount -t ${UNIONTYPE} ${unionmountopts} ${UNIONTYPE} "${unionmountpoint}"
+				;;
 
 			*)
 				if [ -n "${PERSISTENT_READONLY}" ]

-- 
live-boot



More information about the debian-live-changes mailing list