Add overlayfs support (Closes: #658265).
authorMichal Suchanek <hramrach@centrum.cz>
Fri, 15 Apr 2011 09:36:00 +0000 (11:36 +0200)
committerDaniel Baumann <daniel@debian.org>
Fri, 3 Feb 2012 13:23:32 +0000 (14:23 +0100)
scripts/live

index 8ffbc20..5af7ad8 100755 (executable)
@@ -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}" ]