make cryptosetup fail on missmatched passwords

This commit is contained in:
Hal Emmerich 2019-10-09 01:29:54 -05:00
parent 159a84d181
commit c80f515d9a

View File

@ -91,8 +91,8 @@ then
CRYPTO=true CRYPTO=true
# Since iteration count is based on cpu power, and the rk3288 isn't as fast as a usual # Since iteration count is based on cpu power, and the rk3288 isn't as fast as a usual
# desktop cpu, manually supply -i 15000 for security at the cost of a slightly slower unlock # desktop cpu, manually supply -i 15000 for security at the cost of a slightly slower unlock
echo "Now enter the password you would like to use to unlock the encrypted root partition at boot" echo "Now to setup the password you would like to use to unlock the encrypted root partition at boot"
cryptsetup -q -y -s 512 luksFormat -i 15000 /dev/$ROOT_DEV_NAME cryptsetup -q -y -s 512 luksFormat -i 15000 /dev/$ROOT_DEV_NAME || exit 1
echo "Now unlock the newly created encrypted root partition so we can mount it and install the filesystem" echo "Now unlock the newly created encrypted root partition so we can mount it and install the filesystem"
cryptsetup luksOpen /dev/$ROOT_DEV_NAME luksroot || exit 1 cryptsetup luksOpen /dev/$ROOT_DEV_NAME luksroot || exit 1
ROOT_DEV_NAME=mapper/luksroot ROOT_DEV_NAME=mapper/luksroot