From: Michal Suchanek Date: Fri, 15 Apr 2011 09:36:00 +0000 (+0200) Subject: Add overlayfs support (Closes: #658265). X-Git-Tag: debian/3.0_a25-1~1 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=2b913a034efc31da458036087245591cb6aa6f47;hp=1302eec7ef0351d797a3cba700e5c55957263671;p=live-boot-grml.git 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}" ]