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