diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index a216b84..ff724b5 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -157,12 +157,15 @@ devicelist(){ } bootstrapCD() { - local DEVICES=`devicelist` - # The device was specified on the command line, so there's no need to scan - # a bunch of extra devices + local DEVICES= + + # The device was specified on the command line, so there's no need + # to scan a bunch of extra devices [ -n "${CDROOT_DEV}" ] && DEVICES="${CDROOT_DEV}" + [ -z "${CDROOT_DEV}" ] && DEVICES=$(devicelist) - findmediamount "cdrom" "${SUBDIR}/${CDROOT_MARKER}" "REAL_ROOT" "${CDROOT_PATH}" ${DEVICES} + findmediamount "cdrom" "${SUBDIR}/${CDROOT_MARKER}" \ + "REAL_ROOT" "${CDROOT_PATH}" ${DEVICES} } bootstrapKey() {