summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-06-15 02:45:50 +0100
committerChris Lamb <chris@chris-lamb.co.uk>2008-06-15 02:45:50 +0100
commit28db987a8e76567ced94b4f68461427bbb38e11d (patch)
treeed2401cbb46844da2be4f3f616bf7dd51507fb10
parent4c01d50ea6e3f7b569de755732cee01a66d1d787 (diff)
downloadvyos-live-build-28db987a8e76567ced94b4f68461427bbb38e11d.tar.gz
vyos-live-build-28db987a8e76567ced94b4f68461427bbb38e11d.zip
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. Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
-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 f4d02f67e..d0f6d201b 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