Add wipe option for luks

This commit is contained in:
MatMoul 2015-08-22 23:15:10 +02:00
parent fdf1d5ca56
commit d8321059c6

4
archfi
View file

@ -551,6 +551,10 @@ formatdevice(){
echo "" echo ""
echo "$txtopenluksdevice" echo "$txtopenluksdevice"
cryptsetup luksOpen $2 $1 cryptsetup luksOpen $2 $1
if (whiptail --backtitle "$apptitle" --title "luks" --yesno "Wipe device (recommended) ?" 0 0) then
clear
dd if=/dev/zero of=/dev/mapper/$1
fi
pressanykey pressanykey
formatdevice $1 /dev/mapper/$1 noluks formatdevice $1 /dev/mapper/$1 noluks
if [ "$1" = "root" ]; then if [ "$1" = "root" ]; then