Add wipe option for luks

This commit is contained in:
MatMoul 2015-08-22 23:29:30 +02:00
parent d8321059c6
commit ee8598d00d

4
archfi
View file

@ -553,7 +553,9 @@ formatdevice(){
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
dd if=/dev/zero of=/dev/mapper/$1 2>&1 | whiptail --backtitle "$apptitle" --title "luks" --gauge "Please wait..." 0 0 0
#echo "if=/dev/zero of=/dev/mapper/$1"
#dd if=/dev/zero of=/dev/mapper/$1
fi
pressanykey
formatdevice $1 /dev/mapper/$1 noluks