decrease memory need of dd while erasing the partition table

this was leading to the OOM killer killing dd.
This commit is contained in:
Attila Lendvai
2023-10-22 19:22:24 +02:00
parent 725caf2919
commit ab6816284f

View File

@@ -34,7 +34,7 @@ hasBigEnoughPendrive()
setupPendrivePartitions()
{
# erase partition table
dd if=/dev/zero of=/dev/sda bs=1M count=1
dd if=/dev/zero of=/dev/sda bs=1k count=256
# sda1 is 'swap'
# sda2 is 'root'