diff options
author | Chris Lamb <chris@chris-lamb.co.uk> | 2008-03-23 04:21:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:29 +0100 |
commit | 55472e65570b2ebd33a0bd9ca4aebfb0cad203e4 (patch) | |
tree | ea6372cd9bcf9b5597584772e9bc671968f67b6c /helpers/lh_binary_grub | |
parent | 13625df75ce06441df9c8e19d104c4fabf69bafe (diff) | |
download | live-build-55472e65570b2ebd33a0bd9ca4aebfb0cad203e4.zip live-build-55472e65570b2ebd33a0bd9ca4aebfb0cad203e4.tar.gz |
Allow LH_ENCRYPTION="disabled" to disable encryption
Diffstat (limited to 'helpers/lh_binary_grub')
-rwxr-xr-x | helpers/lh_binary_grub | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/helpers/lh_binary_grub b/helpers/lh_binary_grub index 6915cf5..1e4376b 100755 --- a/helpers/lh_binary_grub +++ b/helpers/lh_binary_grub @@ -136,10 +136,13 @@ Check_multiarchitecture mkdir -p "${DESTDIR_LIVE}" # Setting boot parameters -if [ -n "${LH_ENCRYPTION}" ] -then - LH_BOOTAPPEND_LIVE="${LH_BOOTAPPEND_LIVE} encryption=${LH_ENCRYPTION}" -fi + +case "${LH_ENCRYPTION}" in + ""|disabled) + ;; + *) + LH_BOOTAPPEND_LIVE="${LH_BOOTAPPEND_LIVE} encryption=${LH_ENCRYPTION}" +esac if [ -n "${LH_USERNAME}" ] then |