From 0d32e03958ca496014a12fc62d8ff5d8ebc57d88 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 19 Apr 2023 04:08:47 +0200 Subject: [PATCH] Write zeroes --- run/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run/install.sh b/run/install.sh index 5be640b..2e98307 100644 --- a/run/install.sh +++ b/run/install.sh @@ -115,7 +115,9 @@ if (( SYSTEM_SIZE > SPACE )); then echo "ERROR: Not enough free space to create a 4 GB system disk." && exit 87 fi -if [ "$ALLOCATE" != "F" ]; then +if [ "$ALLOCATE" != "Z" ]; then + + # Cannot use truncate here because of swap partition if ! fallocate -l "${SYSTEM_SIZE}" "${SYSTEM}"; then rm -f "${SYSTEM}"