From 51b106b7e8729de02d76973a7e550c259b4b508c Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 19 Apr 2023 21:03:58 +0200 Subject: [PATCH] Formatting --- run/install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/run/install.sh b/run/install.sh index 7cb6354..5a05ffd 100644 --- a/run/install.sh +++ b/run/install.sh @@ -103,7 +103,7 @@ BOOT=$(find $TMP -name "*.bin.zip") BOOT=$(echo "$BOOT" | head -c -5) unzip -q -o "$BOOT".zip -d $TMP - [ "$ALLOCATE" != "Z" ] && echo "Install: Allocating diskspace..." +[ "$ALLOCATE" != "Z" ] && echo "Install: Allocating diskspace..." SYSTEM="$TMP/sys.img" SYSTEM_SIZE=4954537983 @@ -121,10 +121,8 @@ if ! fallocate -l "${SYSTEM_SIZE}" "${SYSTEM}"; then fi if [ "$ALLOCATE" = "Z" ]; then - echo "Install: Preallocating 4 GB of diskspace..." dd if=/dev/urandom of="${SYSTEM}" count="${SYSTEM_SIZE}" bs=1M iflag=count_bytes status=none - fi # Check if file exists