From 5cb3a1a800b0998d1d62997627f165d66fb55405 Mon Sep 17 00:00:00 2001
From: Chris Lamb <chris@chris-lamb.co.uk>
Date: Sun, 15 Jun 2008 02:45:50 +0100
Subject: 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.
---
 helpers/lh_binary_debian-installer | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

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
-- 
cgit v1.0