mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -8,8 +8,8 @@ from pathlib import Path
|
||||
import click
|
||||
|
||||
|
||||
# btrfs cannot shrink smaller than about 268 MB
|
||||
SMALLEST_SIZE = 270_000_000
|
||||
# btrfs cannot shrink smaller than about 256 MiB
|
||||
SMALLEST_SIZE = 256 * 1024 * 1024
|
||||
|
||||
|
||||
@click.command()
|
||||
|
||||
@@ -42,8 +42,8 @@ sudo chown ofm:ofm -R mnt_rw mnt_rw2
|
||||
|
||||
grep fixed extract_out.log > dedupl_fixed.log || true
|
||||
|
||||
# we need to extract, delete dedupl and rsync onto a new partition
|
||||
# otherwise the partition image stays big
|
||||
# Unfortunately, by deleting files from the btrfs partition, the size _grows_.
|
||||
# So we need to rsync onto a new partition.
|
||||
rsync -avH mnt_rw/extract/ mnt_rw2/extract/ > rsync_out.log 2> rsync_err.log
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user