summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_syslinux
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-03-23 04:21:47 +0000
committerChris Lamb <chris@chris-lamb.co.uk>2008-03-23 04:21:47 +0000
commit1ca0b58aac2ab58b900eb0c44490ba15d0052f2a (patch)
treeea6372cd9bcf9b5597584772e9bc671968f67b6c /helpers/lh_binary_syslinux
parentea375828e965af1731ca238ba205cb7b99b0369f (diff)
downloadvyos-live-build-1ca0b58aac2ab58b900eb0c44490ba15d0052f2a.tar.gz
vyos-live-build-1ca0b58aac2ab58b900eb0c44490ba15d0052f2a.zip
Allow LH_ENCRYPTION="disabled" to disable encryption
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
Diffstat (limited to 'helpers/lh_binary_syslinux')
-rwxr-xr-xhelpers/lh_binary_syslinux11
1 files changed, 7 insertions, 4 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index 535fb8f1f..98dabeb02 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -388,10 +388,13 @@ mkdir -p "${SCREEN_PATH}"
mkdir -p "${DATA_PATH}"
# 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