summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2016-01-29 07:41:43 -0500
committerKim Hagen <kim.sidney@gmail.com>2016-01-29 07:41:43 -0500
commit47e2c43533abe96eca65f3906528c8654d5839b4 (patch)
treeac5c1e846803161827fc0c20de37c3a7966c4c04 /scripts
parentecb3ae1ed2a66c0ddc5be25f6cba9fe6c0a0345a (diff)
downloadvyatta-cfg-system-47e2c43533abe96eca65f3906528c8654d5839b4.tar.gz
vyatta-cfg-system-47e2c43533abe96eca65f3906528c8654d5839b4.zip
Correct overlay mount function.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install/install-functions7
-rwxr-xr-xscripts/install/install-image-new4
2 files changed, 7 insertions, 4 deletions
diff --git a/scripts/install/install-functions b/scripts/install/install-functions
index 720ac28a..d6e38523 100755
--- a/scripts/install/install-functions
+++ b/scripts/install/install-functions
@@ -337,11 +337,12 @@ gen_mopts ()
local mnttype=$1
local upper=$2
local lower=$3
- local mntpoint=$4
+ local work=$4
+ local mntpoint=$5
case "$1" in
- overlayfs)
- echo "-t $mnttype -o noatime,upperdir=$upper,lowerdir=$lower $mnttype $mntpoint"
+ overlay)
+ echo "-t $mnttype -o noatime,upperdir=$upper,lowerdir=$lower,workdir=$work $mnttype $mntpoint"
;;
*)
echo "-t $mnttype -o noatime,dirs=$upper=rw:$lower=ro $mnttype $mntpoint"
diff --git a/scripts/install/install-image-new b/scripts/install/install-image-new
index 91cb27fa..81ac45e9 100755
--- a/scripts/install/install-image-new
+++ b/scripts/install/install-image-new
@@ -64,6 +64,8 @@ mkdir -p $WRITE_ROOT/boot/$image_name
# make dir for backing store
rw_dir=$WRITE_ROOT/boot/$image_name/live-rw
mkdir -p $rw_dir
+work_dir=$WRITE_ROOT/boot/$image_name/live-work
+mkdir -p $work_dir
echo Copying squashfs image...
# these are the defaults if installing from a specified ISO image file.
@@ -94,7 +96,7 @@ if ! try_mount "-o loop,ro -t squashfs $target_squash $READ_ROOT"; then
echo 'Exiting...'
exit 1
fi
-margs=$(gen_mopts "overlayfs" $rw_dir $READ_ROOT $INST_ROOT)
+margs=$(gen_mopts "overlay" $rw_dir $READ_ROOT $work_dir $INST_ROOT)
if ! try_mount "$margs"; then
echo 'Exiting...'
exit 1