This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script will make an encrypted root file system on a USB drive with the | |
# following steps: | |
# 1) create a LUKS key that is locked up by zymkey | |
# 2) create a LUKS dm-crypt partition on an external drive | |
# 3) create an ext4 volume on the dm-crypt partition | |
# 5) copy the existing root file system on /dev/mmcblkXpY (X=0, Y=2 by default) | |
# to the dm-crypt volume | |
# 6) create an initramfs which will be used to boot to the dm-crypt volume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script will make an encrypted root file system on the RPi SD card. | |
# This script needs an external storage device which is used for hosting | |
# a temporary root file system as well as storing the temporary backup | |
# of the root file system on the SD card. The script is equipped to | |
# recognize if the external drive already has the necessary components | |
# installed so that the migration can be expedited. | |
# Ensure running as root or exit |