The title says it all - This is an attempt of porting the debian/kali
/live-tools
feature of Encrypted Persistence
over to casper
/Ubuntu
systems.
- Build the package
git clone https://github.com/justhx0r/casper_encrypter_persistence && \
cd casper_encrypted_persistence && \
rm README.md && \
dpkg -b . ..
- Install the packages in your
custom-root
or whatever workspace you use for building or modifying a ubuntu iso - Append the following boot parameters:
persistent persistence-cryptsetup
- Setup the encrypted storage, e.g after writing the iso to a usb thumb drive(Make sure to replace with the device filepath!)
cryptsetup luksFormat /dev/sdX3
cryptsetup luksOpen /dev/sdX3 persistence
mkfs.ext3 /dev/mapper/persistence
e2label /dev/mapper/persistence casper-rw
mount /dev/mapper/persistence /mnt
echo '/ union' > /mnt/persistence.conf
umount /mnt
cryptsetup close persistence
- You should now be able to boot using encrypted persistence!