aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-11-17 16:28:29 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-11-17 16:28:29 +0100
commit662da3767bfa723e82bb9d94aad4cba34e64f59b (patch)
tree45fc80b2002dd661d635e53780fa9f6973b9d687
parentMore grub weirdness (diff)
downloadarch-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-xjoes-arch-install-UEFI.sh5
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