summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-06-15 02:45:50 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:35 +0100
commit5cb3a1a800b0998d1d62997627f165d66fb55405 (patch)
treeed2401cbb46844da2be4f3f616bf7dd51507fb10 /helpers
parent54a05a4691ba38fd5f552bc1df835b252f8ba768 (diff)
downloadlive-build-5cb3a1a800b0998d1d62997627f165d66fb55405.zip
live-build-5cb3a1a800b0998d1d62997627f165d66fb55405.tar.gz
Abort if "live" d-i installation is attempted with minimal or stripped LH_PACKAGES_LISTS
This is required because lh_binary_rootfs removes /boot if minimal or stripped is the only packages list.
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_binary_debian-installer11
1 files changed, 10 insertions, 1 deletions
diff --git a/helpers/lh_binary_debian-installer b/helpers/lh_binary_debian-installer
index f4d02f6..d0f6d20 100755
--- a/helpers/lh_binary_debian-installer
+++ b/helpers/lh_binary_debian-installer
@@ -35,13 +35,22 @@ fi
# Check d-i configuration
case "${LH_DEBIAN_INSTALLER}" in
- enabled|cdrom|netinst|netboot|businesscard|live)
+ enabled|cdrom|netinst|netboot|businesscard)
;;
disabled)
exit 0
;;
+ live)
+ case "${LH_PACKAGES_LISTS}" in
+ stripped|minimal)
+ Echo_error "live d-i installation is incompatbile with stripped and minimal"
+ exit 1
+ ;;
+ esac
+ ;;
+
*)
Echo_error "debian-installer flavour ${LH_DEBIAN_INSTALLER} not supported."
exit 1