From 1def82c205483890d1d7533d1ef1676136f77733 Mon Sep 17 00:00:00 2001 From: Zsolt Ero Date: Sun, 10 Dec 2023 06:46:11 +0100 Subject: [PATCH] fix --- scripts/tile_gen/extract_btrfs.sh | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/scripts/tile_gen/extract_btrfs.sh b/scripts/tile_gen/extract_btrfs.sh index f4cdbb1..b3adcf3 100644 --- a/scripts/tile_gen/extract_btrfs.sh +++ b/scripts/tile_gen/extract_btrfs.sh @@ -5,15 +5,9 @@ rm -rf mnt rm -f image.btrfs -# make a sparse file -# make sure it's bigger then the current OSM output +# make an empty file that's definitely bigger then the current OSM output fallocate -l 300G image.btrfs -fallocate -l 10G image.btrfs - - - - # metadata: single needed as default is now DUP mkfs.btrfs -v \ @@ -22,12 +16,11 @@ mkfs.btrfs -v \ # https://btrfs.readthedocs.io/en/latest/btrfs-man5.html#mount-options # compression doesn't make sense, data is already gzip compressed - mkdir -p mnt sudo mount -v \ -t btrfs \ -o noacl,nobarrier,noatime,max_inline=4096 \ - image2.btrfs mnt + image.btrfs mnt sudo chown ofm:ofm -R mnt @@ -36,15 +29,6 @@ sudo chown ofm:ofm -R mnt > "extract_out.log" 2> "extract_err.log" -# resize to min possible size -btrfs filesystem usage -b mnt - -btrfs filesystem resize -10G mnt -sudo btrfs filesystem resize -100M mnt - - -sudo umount mnt -