Correcting LH_BOOTAPPEND_INSTALL default values.

This commit is contained in:
Cody A.W. Somerville 2009-11-13 09:27:00 +01:00 committed by Daniel Baumann
parent 605af52623
commit 7b3038c64f
1 changed files with 9 additions and 9 deletions
functions

View File

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