~asac/live-build/live-helper.install-kernel-with-no-initramfs

« back to all changes in this revision

Viewing changes to helpers/lh_binary_encryption

  • Committer: Daniel Baumann
  • Date: 2007-09-23 08:04:47 UTC
  • Revision ID: git-v1:f4383da69d4642521cb07f8f970d9c9c759b44ee
Tags: 1.0_a2-1
Adding live-helper 1.0~a2-1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
Set_defaults
17
17
 
18
18
# Requiring stage file
19
 
Require_stagefile "${LIVE_ROOT}"/.stage/bootstrap
20
 
Require_stagefile "${LIVE_ROOT}"/.stage/binary_rootfs
 
19
Require_stagefile .stage/bootstrap
 
20
Require_stagefile .stage/binary_rootfs
21
21
 
22
22
# Checking lock file
23
 
Check_lockfile "${LIVE_ROOT}"/.lock
 
23
Check_lockfile .lock
24
24
 
25
25
# Creating lock file
26
 
Create_lockfile "${LIVE_ROOT}"/.lock
 
26
Create_lockfile .lock
27
27
 
28
28
# Checking stage file
29
 
Check_stagefile "${LIVE_ROOT}"/.stage/binary_encryption
 
29
Check_stagefile .stage/binary_encryption
30
30
 
31
31
if [ -n "${LIVE_ENCRYPTION}" ]
32
32
then
51
51
                        ;;
52
52
        esac
53
53
 
54
 
        echo "Encrypting ${LIVE_ROOT}/binary/casper/filesystem.${ROOTFS} with ${LIVE_ENCRYPTION}..."
 
54
        echo "Encrypting binary/casper/filesystem.${ROOTFS} with ${LIVE_ENCRYPTION}..."
55
55
 
56
56
        while true
57
57
        do
58
 
                cat ${LIVE_ROOT}/binary/casper/filesystem.${ROOTFS} | aespipe -e "${LIVE_ENCRYPTION}" -T > "${LIVE_ROOT}"/binary/casper/filesystem.${ROOTFS} && break
 
58
                cat binary/casper/filesystem.${ROOTFS} | aespipe -e "${LIVE_ENCRYPTION}" -T > binary/casper/filesystem.${ROOTFS} && break
59
59
 
60
60
                echo -n "Something went wrong... Retry? [YES/no] "
61
61
 
69
69
        done
70
70
 
71
71
        # Creating stage file
72
 
        Create_stagefile "${LIVE_ROOT}"/.stage/binary_encryption
 
72
        Create_stagefile .stage/binary_encryption
73
73
fi