diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-26 00:38:38 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-26 00:38:38 +0100 |
commit | 4a705cd605577de7ec2a736f0861e8e3c9524693 (patch) | |
tree | eea986e436307762fb0c872dec77aaeae692b0a8 /joes-arch-install-UEFI.sh | |
parent | Shellchecked, untested, don't know if it wont break everything (diff) | |
download | arch-installer-4a705cd605577de7ec2a736f0861e8e3c9524693.tar.gz arch-installer-4a705cd605577de7ec2a736f0861e8e3c9524693.tar.bz2 arch-installer-4a705cd605577de7ec2a736f0861e8e3c9524693.tar.xz arch-installer-4a705cd605577de7ec2a736f0861e8e3c9524693.tar.zst arch-installer-4a705cd605577de7ec2a736f0861e8e3c9524693.zip |
added wipe msgs
Diffstat (limited to '')
-rwxr-xr-x | joes-arch-install-UEFI.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/joes-arch-install-UEFI.sh b/joes-arch-install-UEFI.sh index 1073e3d..05bd716 100755 --- a/joes-arch-install-UEFI.sh +++ b/joes-arch-install-UEFI.sh @@ -409,10 +409,12 @@ if [ "$basepartc" -ge 1 ]; then i=1 while [[ $i -le $basepartc ]]; do towipe=$(lsblk "$drv" | grep part | awk '{print $1}' | rev | cut -c -1 | rev | awk "NR==$i") + echo -e "${BCYAN}Wiping $drv$towipe...${END}" dd if=/dev/zero of="$drv$towipe" bs=1M status=progress > /dev/null 2>&1 ((i++)) done fi +echo -e "${BCYAN}Wiping $drv...${END}" dd if=/dev/zero of="$drv" bs=1M status=progress > /dev/null 2>&1 wipefs --all --force "$drv" echo -e "${BGREEN}Wiping complete.${END}" |