diff options
author | Michal Suchanek <hramrach@centrum.cz> | 2011-04-15 11:36:00 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-02-03 14:23:32 +0100 |
commit | 2b913a034efc31da458036087245591cb6aa6f47 (patch) | |
tree | 7be7864dcebb882915badbd1eae974015e073237 | |
parent | 1302eec7ef0351d797a3cba700e5c55957263671 (diff) | |
download | live-boot-2b913a034efc31da458036087245591cb6aa6f47.tar.gz live-boot-2b913a034efc31da458036087245591cb6aa6f47.zip |
Add overlayfs support (Closes: #658265).
-rwxr-xr-x | scripts/live | 6 |
1 files changed, 5 insertions, 1 deletions
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}" ] |