diff options
Diffstat (limited to 'helpers/lh_binary_encryption')
-rwxr-xr-x | helpers/lh_binary_encryption | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/helpers/lh_binary_encryption b/helpers/lh_binary_encryption index c10ba9a75..d660b522f 100755 --- a/helpers/lh_binary_encryption +++ b/helpers/lh_binary_encryption @@ -66,24 +66,11 @@ case "${LIVE_FILESYSTEM}" in ;; esac -if [ ! -f chroot/usr/bin/aespipe ] -then - PACKAGES="${PACKAGES} aespipe" -fi +# Checking depends +Check_package chroot/usr/bin/aespipe aespipe -if [ -n "${PACKAGES}" ] -then - # Installing packages - case "${LH_APT}" in - apt|apt-get) - Chroot "apt-get install --yes ${PACKAGES}" - ;; - - aptitude) - Chroot "aptitude install --assume-yes ${PACKAGES}" - ;; - esac -fi +# Installing depends +Install_package # Moving image mv binary/casper/filesystem.${LIVE_FILESYSTEM} chroot @@ -113,18 +100,8 @@ Chroot "sh encrypt" mv chroot/filesystem.${LIVE_FILESYSTEM} binary/casper rm -f chroot/encrypt -# Removing packages -if [ -n "${PACKAGES}" ] -then - case "${LH_APT}" in - apt|apt-get) - Chroot "apt-get remove --purge --yes ${PACKAGES}" - ;; - aptitude) - Chroot "aptitude purge --assume-yes ${PACKAGES}" - ;; - esac -fi +# Removing depends +Remove_package # Creating stage file Create_stagefile .stage/binary_encryption |