summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody A.W. Somerville <cody.somerville@canonical.com>2009-11-13 09:27:00 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:48 +0100
commit7b3038c64f3236fea7e4940f4e4aa76e2bbdb97f (patch)
treeb4f6f5a74aec7a98c27e6b1e12a0ad4e9977be3e
parent605af5262385ef9743066562b1682b888a6cb00b (diff)
downloadvyos-live-build-7b3038c64f3236fea7e4940f4e4aa76e2bbdb97f.tar.gz
vyos-live-build-7b3038c64f3236fea7e4940f4e4aa76e2bbdb97f.zip
Correcting LH_BOOTAPPEND_INSTALL default values.
-rwxr-xr-xfunctions/defaults.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index f2a6de29d..399c582e9 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -824,19 +824,19 @@ Set_defaults ()
esac
fi
- if [ -z "${LH_BOOTAPPEND_INSTALL}" ]
+ if [ "${LH_BINARY_IMAGES}" = "usb-hdd" ]
then
# Try USB block devices for install media
- if [ "${LH_BINARY_IMAGES}" = "usb-hdd" ]
- then
- LH_BOOTAPPEND_INSTALL="cdrom-detect/try-usb=true"
- fi
+ LH_BOOTAPPEND_INSTALL="cdrom-detect/try-usb=true ${LH_BOOTAPPEND_INSTALL}"
+ fi
- if [ -n ${_LH_BOOTAPPEND_PRESEED} ]
- then
- LH_BOOTAPPEND_INSTALL="${LH_BOOTAPPEND_INSTALL} ${_LH_BOOTAPPEND_PRESEED}"
- fi
+ if [ -n ${_LH_BOOTAPPEND_PRESEED} ]
+ then
+ LH_BOOTAPPEND_INSTALL="${LH_BOOTAPPEND_INSTALL} ${_LH_BOOTAPPEND_PRESEED}"
+ fi
+ if [ -n "${LH_BOOTAPPEND_LIVE}" ]
+ then
LH_BOOTAPPEND_INSTALL="${LH_BOOTAPPEND_INSTALL} -- \${LH_BOOTAPPEND_LIVE}"
fi