number,mktable
This commit is contained in:
parent
4514296ee4
commit
7905892e59
1 changed files with 7 additions and 1 deletions
|
@ -136,13 +136,19 @@ function hetzner-rescue-wipe-12-10-10 {
|
|||
'/dev/sda'
|
||||
'/dev/sdb'
|
||||
)
|
||||
local number=0
|
||||
local unit='mib'
|
||||
#
|
||||
lsblk
|
||||
echo -n 'WIPE' "${device}" '/?\ OR CANCEL /!\'
|
||||
read
|
||||
#
|
||||
parted "${device}" --script mktable gpt
|
||||
for device in "${devices[@]}" ; do
|
||||
((number++))
|
||||
echo ; echo "#${number}: ${device}"
|
||||
#
|
||||
parted "${device}" --script mktable gpt
|
||||
done
|
||||
#
|
||||
parted "${device}" unit "${unit}" mkpart 'crypt' 65795 1907729
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue