Add wipe option for luks
This commit is contained in:
parent
fdf1d5ca56
commit
d8321059c6
1 changed files with 4 additions and 0 deletions
4
archfi
4
archfi
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue