diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:17 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:26 +0100 |
commit | 0d0de885e32ff67d57bb7def451b62d75b8920ab (patch) | |
tree | cd4a159a86207401dbd5990bc0fa3c28825ab6f8 /helpers/lh_binary_encryption | |
parent | c68c0a270832ca340429878ce6a0ab606d435b06 (diff) | |
download | live-build-0d0de885e32ff67d57bb7def451b62d75b8920ab.zip live-build-0d0de885e32ff67d57bb7def451b62d75b8920ab.tar.gz |
Adding live-helper 1.0~a22-1.
Diffstat (limited to 'helpers/lh_binary_encryption')
-rwxr-xr-x | helpers/lh_binary_encryption | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/helpers/lh_binary_encryption b/helpers/lh_binary_encryption index 06ad2c4..0fb9b7e 100755 --- a/helpers/lh_binary_encryption +++ b/helpers/lh_binary_encryption @@ -32,7 +32,7 @@ Read_conffile config/binary Read_conffile config/source Set_defaults -if [ -z "${LIVE_ENCRYPTION}" ] +if [ -z "${LH_ENCRYPTION}" ] then exit 0 fi @@ -62,7 +62,7 @@ case "${LH_INITRAMFS}" in ;; esac -case "${LIVE_CHROOT_FILESYSTEM}" in +case "${LH_CHROOT_FILESYSTEM}" in ext2) ROOTFS="ext2" ;; @@ -86,17 +86,17 @@ Restore_cache cache/packages_binary # Installing depends Install_package -case "${LIVE_CHROOT_BUILD}" in +case "${LH_CHROOT_BUILD}" in enabled) # Moving image - mv binary/${INITFS}/filesystem.${LIVE_CHROOT_FILESYSTEM} chroot + mv binary/${INITFS}/filesystem.${LH_CHROOT_FILESYSTEM} chroot -echo "Encrypting binary/${INITFS}/filesystem.${ROOTFS} with ${LIVE_ENCRYPTION}..." +echo "Encrypting binary/${INITFS}/filesystem.${ROOTFS} with ${LH_ENCRYPTION}..." cat >> chroot/encrypt.sh << EOF while true do - cat filesystem.${ROOTFS} | aespipe -e ${LIVE_ENCRYPTION} -T > filesystem.${ROOTFS}.tmp && mv filesystem.${ROOTFS}.tmp filesystem.${ROOTFS} && break + cat filesystem.${ROOTFS} | aespipe -e ${LH_ENCRYPTION} -T > filesystem.${ROOTFS}.tmp && mv filesystem.${ROOTFS}.tmp filesystem.${ROOTFS} && break echo -n "Something went wrong... Retry? [YES/no] " @@ -113,14 +113,14 @@ EOF Chroot "sh encrypt.sh" # Move image - mv chroot/filesystem.${LIVE_CHROOT_FILESYSTEM} binary/${INITFS} + mv chroot/filesystem.${LH_CHROOT_FILESYSTEM} binary/${INITFS} rm -f chroot/encrypt.sh ;; disabled) while true do - cat binary/${INITFS}/filesystem.${ROOTFS} | aespipe -e ${LIVE_ENCRYPTION} -T > binary/${INITFS}/filesystem.${ROOTFS}.tmp && mv binary/${INITFS}/filesystem.${ROOTFS}.tmp binary/${INITFS}/filesystem.${ROOTFS} && break + cat binary/${INITFS}/filesystem.${ROOTFS} | aespipe -e ${LH_ENCRYPTION} -T > binary/${INITFS}/filesystem.${ROOTFS}.tmp && mv binary/${INITFS}/filesystem.${ROOTFS}.tmp binary/${INITFS}/filesystem.${ROOTFS} && break echo -n "Something went wrong... Retry? [YES/no] " |