From d8321059c6682474f64d1c950a196ff3c3f72575 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 22 Aug 2015 23:15:10 +0200 Subject: [PATCH] Add wipe option for luks --- archfi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/archfi b/archfi index cf11416..c77d1c0 100644 --- a/archfi +++ b/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