mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
add btrfs
This commit is contained in:
@@ -39,7 +39,7 @@ def cli(btrfs_img: Path):
|
||||
# needs to start with a balancing
|
||||
# https://btrfs.readthedocs.io/en/latest/Balance.html
|
||||
# https://marc.merlins.org/perso/btrfs/post_2014-05-04_Fixing-Btrfs-Filesystem-Full-Problems.html
|
||||
print('Starting a balancing')
|
||||
print('Starting btrfs balancing')
|
||||
p = subprocess.run(
|
||||
['btrfs', 'balance', 'start', '-dusage=100', mnt_dir], capture_output=True, text=True
|
||||
)
|
||||
|
||||
@@ -28,7 +28,9 @@ sudo chown ofm:ofm -R mnt
|
||||
../../tile_gen/venv/bin/python ../../tile_gen/extract.py output.mbtiles mnt/extract \
|
||||
> "extract_out.log" 2> "extract_err.log"
|
||||
|
||||
|
||||
sudo umount mnt
|
||||
|
||||
../../tile_gen/venv/bin/python ../../tile_gen/shrink_btrfs.py image.btrfs
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user