From cf29af3d7f90412990a133eee9c4703ae8d39498 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 2 Apr 2023 03:57:41 +0200 Subject: [PATCH] Format to btrfs instead of ext4 --- run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index a17fddf..343a8d9 100755 --- a/run.sh +++ b/run.sh @@ -19,7 +19,8 @@ FILE="$IMG/system.img" FILE="$IMG/data.img" if [ ! -f "$FILE" ]; then truncate -s "$DISK_SIZE" "$FILE" - mkfs.ext4 -q $FILE + mkfs.btrfs -q -L data -d single -m single "$FILE" > /dev/null + #qemu-img convert -f raw -O qcow2 -o extended_l2=on,cluster_size=128k,compression_type=zstd,preallocation=metadata "$TMP" "$FILE" fi [ ! -f "$FILE" ] && echo "ERROR: Synology DSM data-image does not exist ($FILE)" && exit 83