From eeaec0fc3be0a434a80398f5555b5f33e468d16e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Feb 2010 12:18:34 +0100 Subject: Don't append and re-append try-usb parameter to bootappend-install options over and over again. --- functions/defaults.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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} ] -- cgit v1.0