aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatMoul <matmoul@gmail.com>2015-08-22 23:15:10 +0200
committerMatMoul <matmoul@gmail.com>2015-08-22 23:15:10 +0200
commitd8321059c6682474f64d1c950a196ff3c3f72575 (patch)
tree374444d239007e89bd9df6da186cafcebae4c16f
parentfdf1d5ca56f76c67a0ce66e2d347735a582a7504 (diff)
downloadhyperfi-d8321059c6682474f64d1c950a196ff3c3f72575.tar.lz
hyperfi-d8321059c6682474f64d1c950a196ff3c3f72575.tar.xz
hyperfi-d8321059c6682474f64d1c950a196ff3c3f72575.zip
Add wipe option for luks
-rw-r--r--archfi4
1 files changed, 4 insertions, 0 deletions
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