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>
This commit is contained in:
Chris Lamb 2008-06-15 02:45:50 +01:00
parent 4c01d50ea6
commit 28db987a8e

View File

@ -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