diff options
author | Daniel Baumann <daniel@debian.org> | 2010-02-18 17:34:29 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2010-02-20 17:57:32 +0100 |
commit | 77664c045ce9be5a026c441dcc543a4ab1734c79 (patch) | |
tree | 52a5557cfe76cc3cc7e386e5b9b52436832e0a94 /functions/defaults.sh | |
parent | 728f74d9b419c818fa19855c5d1cb7f8efa4ae04 (diff) | |
download | vyos-live-build-77664c045ce9be5a026c441dcc543a4ab1734c79.tar.gz vyos-live-build-77664c045ce9be5a026c441dcc543a4ab1734c79.zip |
Reworking iso-hybrid as an independent binary image type.
Diffstat (limited to 'functions/defaults.sh')
-rwxr-xr-x | functions/defaults.sh | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh index a5712b75e..f46ec231d 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -669,8 +669,23 @@ Set_defaults () esac # Setting image type - LH_BINARY_IMAGES="${LH_BINARY_IMAGES:-iso}" - LH_BINARY_ISO_HYRBID="${LH_BINARY_ISO_HYBRID:-false}" + case "${LH_DISTRIBUTION}" in + squeeze|sid) + case "${LH_ARCHITECTURE}" in + amd64|i386) + LH_BINARY_IMAGES="${LH_BINARY_IMAGES:-iso-hybrid}" + ;; + + *) + LH_BINARY_IMAGES="${LH_BINARY_IMAGES:-iso}" + ;; + esac + ;; + + *) + LH_BINARY_IMAGES="${LH_BINARY_IMAGES:-iso}" + ;; + esac # Setting apt indices if echo ${LH_PACKAGES_LISTS} | grep -qs -E "(stripped|minimal)\b" @@ -753,7 +768,7 @@ Set_defaults () if [ -n "${LH_DEBIAN_INSTALLER_PRESEEDFILE}" ] then case "${LH_BINARY_IMAGES}" in - iso) + iso*) _LH_BOOTAPPEND_PRESEED="file=/cdrom/install/${LH_DEBIAN_INSTALLER_PRESEEDFILE}" ;; |