summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2016-02-02 09:02:37 -0500
committerKim Hagen <kim.sidney@gmail.com>2016-02-02 09:02:37 -0500
commit0de4577c008231e46915590097df5e09ec669e4e (patch)
treeb54f263444cd4b560a4f2828a4b24da5748d831d
parent343416f754182b1b0bc8025ea0f700bb38d1cd9c (diff)
downloadlive-boot-0de4577c008231e46915590097df5e09ec669e4e.tar.gz
live-boot-0de4577c008231e46915590097df5e09ec669e4e.zip
Change live to mount in variable.
-rwxr-xr-xcomponents/9990-vyos.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/9990-vyos.sh b/components/9990-vyos.sh
index c5340eb..2f515ba 100755
--- a/components/9990-vyos.sh
+++ b/components/9990-vyos.sh
@@ -27,8 +27,8 @@ fi 2>/dev/null
# 3) create live/"overlay" which may or maynot be on a non-volatile device
# but is certainly read-write
-
-unioncfgpath="$(trim_path /root/lib/${VYOS_MOUNT}/${PERSISTENCE_PATH}/rw)"
+VYOS_MOUNT_DIR=`echo ${VYOS_MOUNT} | sed 's/live/mount/'`
+unioncfgpath="$(trim_path /root/lib/live/${VYOS_MOUNT_DIR}/${PERSISTENCE_PATH}/rw)"
if [ -d /root/opt/vyatta/etc/config ]
then