diff options
author | Daniel Baumann <daniel@debian.org> | 2010-02-17 12:18:34 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:04 +0100 |
commit | eeaec0fc3be0a434a80398f5555b5f33e468d16e (patch) | |
tree | 68333ec03b330b6dcf443121e7d1677c9ceb1d58 /functions | |
parent | 3d76871254d170cc4e9f0fcc6a4f115f8f875c1d (diff) | |
download | live-build-eeaec0fc3be0a434a80398f5555b5f33e468d16e.zip live-build-eeaec0fc3be0a434a80398f5555b5f33e468d16e.tar.gz |
Don't append and re-append try-usb parameter to bootappend-install options over and over again.
Diffstat (limited to 'functions')
-rwxr-xr-x | functions/defaults.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh index f52578f..03b1554 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -782,7 +782,10 @@ Set_defaults () if [ "${LH_BINARY_IMAGES}" = "usb-hdd" ] then # Try USB block devices for install media - LH_BOOTAPPEND_INSTALL="cdrom-detect/try-usb=true ${LH_BOOTAPPEND_INSTALL}" + if ! echo "${LH_BOOTAPPEND_INSTALL}" | grep -q try-usb + then + LH_BOOTAPPEND_INSTALL="cdrom-detect/try-usb=true ${LH_BOOTAPPEND_INSTALL}" + fi fi if [ -n ${_LH_BOOTAPPEND_PRESEED} ] |