Unverified Commit 95017b4d authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Use fallocate instead of truncate

parent 30173c3b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ echo "Install: Creating partition table..."

SYSTEM="$TMP/sys.img"
SYSTEM_SIZE="4954537983"
truncate -s "${SYSTEM_SIZE}" "${SYSTEM}"
fallocate -l "${SYSTEM_SIZE}" "${SYSTEM}"

PART="$TMP/partition.fdisk"