Add wipe option for luks
This commit is contained in:
parent
fefa10d12e
commit
cb40ecd35e
1 changed files with 2 additions and 1 deletions
3
archfi
3
archfi
|
@ -557,11 +557,12 @@ formatdevice(){
|
||||||
sel=$(whiptail --backtitle "$apptitle" --title "Wipe device" --menu "Wipe device (recommended) ?" --no-button="Ignore" 0 0 0 \
|
sel=$(whiptail --backtitle "$apptitle" --title "Wipe device" --menu "Wipe device (recommended) ?" --no-button="Ignore" 0 0 0 \
|
||||||
"${options[@]}" \
|
"${options[@]}" \
|
||||||
3>&1 1>&2 2>&3)
|
3>&1 1>&2 2>&3)
|
||||||
clear
|
if [ "$?" = "0" ]; then
|
||||||
case $sel in
|
case $sel in
|
||||||
normal) dd if=/dev/zero of=/dev/mapper/$1 & PID=$! &>/dev/null;;
|
normal) dd if=/dev/zero of=/dev/mapper/$1 & PID=$! &>/dev/null;;
|
||||||
fast) dd if=/dev/zero of=/dev/mapper/$1 bs=30M & PID=$! &>/dev/null;;
|
fast) dd if=/dev/zero of=/dev/mapper/$1 bs=30M & PID=$! &>/dev/null;;
|
||||||
esac
|
esac
|
||||||
|
clear
|
||||||
sleep 1
|
sleep 1
|
||||||
while kill -USR1 $PID &>/dev/null
|
while kill -USR1 $PID &>/dev/null
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in a new issue