diff options
author | Kim Hagen <kim.sidney@gmail.com> | 2016-01-29 07:41:43 -0500 |
---|---|---|
committer | Kim Hagen <kim.sidney@gmail.com> | 2016-01-29 07:41:43 -0500 |
commit | 47e2c43533abe96eca65f3906528c8654d5839b4 (patch) | |
tree | ac5c1e846803161827fc0c20de37c3a7966c4c04 /scripts/install/install-image-new | |
parent | ecb3ae1ed2a66c0ddc5be25f6cba9fe6c0a0345a (diff) | |
download | vyatta-cfg-system-47e2c43533abe96eca65f3906528c8654d5839b4.tar.gz vyatta-cfg-system-47e2c43533abe96eca65f3906528c8654d5839b4.zip |
Correct overlay mount function.
Diffstat (limited to 'scripts/install/install-image-new')
-rwxr-xr-x | scripts/install/install-image-new | 4 |
1 files changed, 3 insertions, 1 deletions
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 |