diff options
author | Chris Lamb <chris@chris-lamb.co.uk> | 2008-06-15 02:45:50 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:35 +0100 |
commit | 5cb3a1a800b0998d1d62997627f165d66fb55405 (patch) | |
tree | ed2401cbb46844da2be4f3f616bf7dd51507fb10 /helpers | |
parent | 54a05a4691ba38fd5f552bc1df835b252f8ba768 (diff) | |
download | vyos-live-build-5cb3a1a800b0998d1d62997627f165d66fb55405.tar.gz vyos-live-build-5cb3a1a800b0998d1d62997627f165d66fb55405.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.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_binary_debian-installer | 11 |
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 |