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 "$txtopenluksdevice"
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
formatdevice $1 /dev/mapper/$1 noluks
if [ "$1" = "root" ]; then