From 912ab6c5ea7983c7b94c4c49dd3aab465b050da2 Mon Sep 17 00:00:00 2001 From: Attila Lendvai Date: Sun, 22 Oct 2023 19:22:24 +0200 Subject: [PATCH] decrease memory need of dd while erasing the partition table this was leading to the OOM killer killing dd. --- image-extras/common/root/autoprovision-stage1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image-extras/common/root/autoprovision-stage1.sh b/image-extras/common/root/autoprovision-stage1.sh index 501c656..d8d7fc2 100755 --- a/image-extras/common/root/autoprovision-stage1.sh +++ b/image-extras/common/root/autoprovision-stage1.sh @@ -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