From 4d748e582c9a6a843a6d5a9c51581d0085f58dc6 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sat, 14 Jun 2008 17:22:57 +0100 Subject: [PATCH] Set correct d-i image type on usb-hdd and tar image types --- helpers/lh_binary_debian-installer | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/helpers/lh_binary_debian-installer b/helpers/lh_binary_debian-installer index 4c4c2b8dd..3e2bdcc97 100755 --- a/helpers/lh_binary_debian-installer +++ b/helpers/lh_binary_debian-installer @@ -92,19 +92,20 @@ case "${LH_BINARY_IMAGES}" in ;; esac -# Setting remote d-i directories -case "${LH_BINARY_IMAGES}" in - net) +# Set d-i image type +case "${LH_DEBIAN_INSTALLER}" in + businesscard|netboot|netinst) DI_IMAGE_TYPE="netboot" ;; *) - case "${LH_DEBIAN_INSTALLER}" in - businesscard|netboot) - DI_IMAGE_TYPE="netboot" - ;; - *) + case "${LH_BINARY_IMAGES}" in + iso) DI_IMAGE_TYPE="cdrom" ;; + + *) + DI_IMAGE_TYPE="netboot" + ;; esac ;; esac