diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2014-12-13 13:52:54 +0100 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2014-12-13 13:52:54 +0100 |
| commit | 688fe2277e9415e079e45a2476ba5c62d356bf1f (patch) | |
| tree | af022955ede77e474b3201730a943cf94082b12e /liveusb/build.sh | |
| parent | ac3119a6e002a283ea8923b59eb30d9b850dc5ee (diff) | |
First try at full encryption process
Diffstat (limited to 'liveusb/build.sh')
| -rwxr-xr-x | liveusb/build.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/liveusb/build.sh b/liveusb/build.sh index efe055c..e46737d 100755 --- a/liveusb/build.sh +++ b/liveusb/build.sh @@ -8,6 +8,7 @@ iso_label="AMENTHES" install_dir=arch arch=$(uname -m) work_dir=work +encrypt_dir=encrypt out_dir=out # args @@ -75,6 +76,11 @@ make_encrypted_device() { echo "passphrase" | cryptsetup luksFormat ${_loopdev} - echo "passphrase" | cryptsetup open ${_loopdev} cryptloop --key-file - mkfs.ext4 /dev/mapper/cryptloop + mkdir -p ${work_dir}/airootfs/mnt/decrypted + mount /dev/mapper/cryptloop ${work_dir}/airootfs/mnt/decrypted + cp -a ${encrypt_dir}/* ${work_dir}/airootfs/mnt/decrypted + umount ${work_dir}/airootfs/mnt/decrypted + cryptsetup close cryptloop } # Customize installation (airootfs) |
