diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-17 16:28:29 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-17 16:28:29 +0100 |
commit | 662da3767bfa723e82bb9d94aad4cba34e64f59b (patch) | |
tree | 45fc80b2002dd661d635e53780fa9f6973b9d687 | |
parent | More grub weirdness (diff) | |
download | arch-installer-662da3767bfa723e82bb9d94aad4cba34e64f59b.tar.gz arch-installer-662da3767bfa723e82bb9d94aad4cba34e64f59b.tar.bz2 arch-installer-662da3767bfa723e82bb9d94aad4cba34e64f59b.tar.xz arch-installer-662da3767bfa723e82bb9d94aad4cba34e64f59b.tar.zst arch-installer-662da3767bfa723e82bb9d94aad4cba34e64f59b.zip |
Silent whiping fixed
-rwxr-xr-x | joes-arch-install-UEFI.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/joes-arch-install-UEFI.sh b/joes-arch-install-UEFI.sh index 981956f..816a424 100755 --- a/joes-arch-install-UEFI.sh +++ b/joes-arch-install-UEFI.sh @@ -369,13 +369,14 @@ basepartc=$(lsblk "$drv" | grep -c part) if [ $basepartc -ge 1 ]; then i=1 echo "Whiping disk. This step may take a while." + echo && echo while [[ $i -le $basepartc ]]; do towhipe=$(lsblk "$drv" | grep part | awk '{print $1}' | rev | cut -c -1 | rev | awk "NR==$i") - dd if=/dev/zero of="$drv$towhipe" bs=1M status=progress > /dev/null + dd if=/dev/zero of="$drv$towhipe" bs=1M status=progress > /dev/null 2>&1 ((i++)) done fi -dd if=/dev/zero of="$drv" bs=1M status=progress > /dev/null +dd if=/dev/zero of="$drv" bs=1M status=progress > /dev/null 2>&1 wipefs --all --force "$drv" fdisk "$drv" << FDISK_INPUT g |