From 27be06512a9fcfbc68ad4f04efa13aa34e43bd2d Mon Sep 17 00:00:00 2001 From: "Cody A.W. Somerville" Date: Wed, 2 Sep 2009 07:39:13 +0200 Subject: Add option to disable use of GTK debian-installer. Adding the ability to disable use of the GTK graphical debian-installer is handy either to reduce the size of the images or if the necessary files aren't available. --- functions/defaults.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'functions') diff --git a/functions/defaults.sh b/functions/defaults.sh index 6fd3533c1..965b3d67b 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -735,6 +735,30 @@ Set_defaults () # Setting debian-installer distribution LH_DEBIAN_INSTALLER_DISTRIBUTION="${LH_DEBIAN_INSTALLER_DISTRIBUTION:-${LH_DISTRIBUTION}}" + # Setting debian-installer-gui + case "${LH_MODE}" in + debian) + LH_DEBIAN_INSTALLER_GUI="${LH_DEBIAN_INSTALLER_GUI:-enabled}" + ;; + + ubuntu) + case "${LH_DEBIAN_INSTALLER_DISTRIBUTION}" in + karmic) + # Not available for Karmic currently. + LH_DEBIAN_INSTALLER_GUI="${LH_DEBIAN_INSTALLER_GUI:-disabled}" + ;; + + *) + LH_DEBIAN_INSTALLER_GUI="${LH_DEBIAN_INSTALLER_GUI:-enabled}" + ;; + esac + ;; + + *) + LH_DEBIAN_INSTALLER_GUI="${LH_DEBIAN_INSTALLER_GUI:-disabled}" + ;; + esac + # Setting debian-installer preseed filename if [ -z "${LH_DEBIAN_INSTALLER_PRESEEDFILE}" ] then -- cgit v1.2.3