Add wipe option for luks
This commit is contained in:
parent
d8321059c6
commit
ee8598d00d
1 changed files with 3 additions and 1 deletions
4
archfi
4
archfi
|
@ -553,7 +553,9 @@ formatdevice(){
|
||||||
cryptsetup luksOpen $2 $1
|
cryptsetup luksOpen $2 $1
|
||||||
if (whiptail --backtitle "$apptitle" --title "luks" --yesno "Wipe device (recommended) ?" 0 0) then
|
if (whiptail --backtitle "$apptitle" --title "luks" --yesno "Wipe device (recommended) ?" 0 0) then
|
||||||
clear
|
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
|
fi
|
||||||
pressanykey
|
pressanykey
|
||||||
formatdevice $1 /dev/mapper/$1 noluks
|
formatdevice $1 /dev/mapper/$1 noluks
|
||||||
|
|
Loading…
Reference in a new issue