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
committerJames Davidson <james.davidson@vyatta.com>2012-10-19 15:59:56 -0700
commit5b2bae39489a1746b0cda648aefbd2c853589b9e (patch)
tree9ed48eb555ada8bcbb119b8ab0d9c32d13a4cb5b /scripts/install/install-image-existing
parent95b26e3dc49fca7724177abee881d881a257859e (diff)
downloadvyatta-cfg-system-5b2bae39489a1746b0cda648aefbd2c853589b9e.tar.gz
vyatta-cfg-system-5b2bae39489a1746b0cda648aefbd2c853589b9e.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 54881043..6df418ee 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.'