Skip to content

Commit

Permalink
make cryptosetup fail on missmatched passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidHal committed Oct 9, 2019
1 parent 159a84d commit c80f515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/InstallScripts/InstallToInternal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ then
CRYPTO=true
# 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
echo "Now enter 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
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 || exit 1
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
ROOT_DEV_NAME=mapper/luksroot
Expand Down

0 comments on commit c80f515

Please sign in to comment.