1 Debian live with encrypted persistence support
3 thanks to cgraff , haylo on #debian-live OFTC
5 use auto scripts to config
9 to copy the image on an usb stick do the following
12 sudo parted "${devicel}" mkpart primary "${bytes}" "${usb_size}"
14 # ENCRYPT THE PARTITION
15 sudo cryptsetup --verbose --verify-passphrase luksFormat "${devicel}2"
17 # OPEN THE ENCRYPTED PARTITION
18 sudo cryptsetup luksOpen "${devicel}2" my_usb
20 # MAKE A FILESYSTEM ON IT AND LABEL IT "persistence"
21 sudo mkfs.ext3 -L persistence /dev/mapper/my_usb
24 sudo mkdir -p /mnt/my_usb
26 # MOUNT THE OPENED ENCYRYPTION PARTITION
27 sudo mount /dev/mapper/my_usb /mnt/my_usb/
29 # MAKE THE PERSISTENCE.CONF FILE
30 echo "/ union" > ~/persistence.conf && sudo mv ~/persistence.conf \
31 /persistence.conf && sudo mv /persistence.conf /mnt/my_usb
34 sudo umount /dev/mapper/my_usb
36 # CLOSE THE LUKS PARTITION
37 sudo cryptsetup luksClose /dev/mapper/my_usb