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 5eac25a701
commit 912ab6c5ea

View File

@@ -41,7 +41,7 @@ setupPendrivePartitions()
{
log "Erasing partition table"
# 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
rereadPartitionTable