From 688fe2277e9415e079e45a2476ba5c62d356bf1f Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sat, 13 Dec 2014 13:52:54 +0100 Subject: First try at full encryption process --- liveusb/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.3.1