number,mktable

This commit is contained in:
Marc Beninca 2023-10-03 04:32:23 +02:00
parent 4514296ee4
commit 7905892e59

View file

@ -136,13 +136,19 @@ function hetzner-rescue-wipe-12-10-10 {
'/dev/sda' '/dev/sda'
'/dev/sdb' '/dev/sdb'
) )
local number=0
local unit='mib' local unit='mib'
# #
lsblk lsblk
echo -n 'WIPE' "${device}" '/?\ OR CANCEL /!\' echo -n 'WIPE' "${device}" '/?\ OR CANCEL /!\'
read read
# #
for device in "${devices[@]}" ; do
((number++))
echo ; echo "#${number}: ${device}"
#
parted "${device}" --script mktable gpt parted "${device}" --script mktable gpt
done
# #
parted "${device}" unit "${unit}" mkpart 'crypt' 65795 1907729 parted "${device}" unit "${unit}" mkpart 'crypt' 65795 1907729
# #