summaryrefslogtreecommitdiff
path: root/scripts/install/install-image-existing
diff options
context:
space:
mode:
authorJames Davidson <james.davidson@vyatta.com>2012-10-19 15:59:56 -0700
committerKim Hagen <khagen@multi-development.com>2014-04-25 20:28:18 +0200
commitb4cf6641f3402a17dc83592abd8fe5e8ff0de802 (patch)
tree3ad3f1455e4d468a6437a8e5febc108d732837e9 /scripts/install/install-image-existing
parent54ebd5693d7ff6f2847f6069570e3e33f90c92d4 (diff)
downloadvyatta-cfg-system-b4cf6641f3402a17dc83592abd8fe5e8ff0de802.tar.gz
vyatta-cfg-system-b4cf6641f3402a17dc83592abd8fe5e8ff0de802.zip
Support and switch to overlayfs
Diffstat (limited to 'scripts/install/install-image-existing')
-rwxr-xr-xscripts/install/install-image-existing3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/install/install-image-existing b/scripts/install/install-image-existing
index 2dedeb95..ac020c96 100755
--- a/scripts/install/install-image-existing
+++ b/scripts/install/install-image-existing
@@ -156,8 +156,7 @@ if ! try_mount "-o loop,ro $target_squash $READ_ROOT"; then
fi
# set up root for postinst
-margs="-t unionfs -o noatime,dirs=$RW_DIR=rw:$READ_ROOT=ro unionfs"
-margs="$margs $INST_ROOT"
+margs=$(gen_mopts "overlayfs" $RW_DIR $READ_ROOT $INST_ROOT)
if ! try_mount "$margs"; then
rm -rf $REL_ROOT
failure_exit 'Failed to set up root directory for postinst.'