|
|
@ -11,6 +11,7 @@ apt-get -y install mdadm cryptsetup debootstrap
|
|
|
|
# encrypt and unlock root device
|
|
|
|
# encrypt and unlock root device
|
|
|
|
echo -n 'Enter luks password: '
|
|
|
|
echo -n 'Enter luks password: '
|
|
|
|
read -s md0pwd
|
|
|
|
read -s md0pwd
|
|
|
|
|
|
|
|
echo #to indicate progress after password prompt
|
|
|
|
echo -n $md0pwd | cryptsetup -q luksFormat /dev/md0
|
|
|
|
echo -n $md0pwd | cryptsetup -q luksFormat /dev/md0
|
|
|
|
echo -n $md0pwd | cryptsetup open --type luks /dev/md0 md0-unlocked
|
|
|
|
echo -n $md0pwd | cryptsetup open --type luks /dev/md0 md0-unlocked
|
|
|
|
unset md0pwd
|
|
|
|
unset md0pwd
|
|
|
|