summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-02-16 11:52:14 -0800
committerBob Gilligan <gilligan@vyatta.com>2010-02-16 11:52:14 -0800
commit03c22ef560755fa2f1b5983dd18fa91066adbd2c (patch)
tree5b90deb53444164393106e34d5795e924f3626ec
parentc333b5e4afbaef65886ba14b5e4580428ca7a495 (diff)
downloadvyatta-cfg-system-03c22ef560755fa2f1b5983dd18fa91066adbd2c.tar.gz
vyatta-cfg-system-03c22ef560755fa2f1b5983dd18fa91066adbd2c.zip
Bugfix 5327: Don't try to save config from images with none.
On image-based systems, the Vyatta configuration is mounted on /config and can be found in the disk filesystem under /boot/<image-name>/live-rw/config.
-rwxr-xr-xscripts/install/install-get-partition2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install/install-get-partition b/scripts/install/install-get-partition
index 37ec5580..f6977850 100755
--- a/scripts/install/install-get-partition
+++ b/scripts/install/install-get-partition
@@ -549,7 +549,7 @@ save_old_info() {
image_dirs=/mnt/tmp/boot/*
for dir in $image_dirs; do
- if [ -f $dir/live-rw/opt/vyatta/etc/config/.vyatta_config ]; then
+ if [ -f $dir/live-rw/config/.vyatta_config ]; then
item=${dir##/mnt/tmp/boot/}
images=($item ${images[@]})