From 55472e65570b2ebd33a0bd9ca4aebfb0cad203e4 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sun, 23 Mar 2008 04:21:47 +0000 Subject: Allow LH_ENCRYPTION="disabled" to disable encryption --- helpers/lh_binary_yaboot | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'helpers/lh_binary_yaboot') diff --git a/helpers/lh_binary_yaboot b/helpers/lh_binary_yaboot index 85a7f940a..2ae5c55cf 100755 --- a/helpers/lh_binary_yaboot +++ b/helpers/lh_binary_yaboot @@ -144,10 +144,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 -- cgit v1.2.3