Don't append and re-append try-usb parameter to bootappend-install options over and over again.

This commit is contained in:
Daniel Baumann 2010-02-17 12:18:34 +01:00
parent 3d76871254
commit eeaec0fc3b
1 changed files with 4 additions and 1 deletions

View File

@ -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} ]