mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -25,12 +25,13 @@ sudo mount -v \
|
||||
|
||||
sudo chown ofm:ofm -R mnt_rw
|
||||
|
||||
../../tile_gen/venv/bin/python ../../tile_gen/extract.py output.mbtiles mnt_rw/extract \
|
||||
../../tile_gen/venv/bin/python ../../tile_gen/extract_mbtiles.py output.mbtiles mnt_rw/extract \
|
||||
> "extract_out.log" 2> "extract_err.log"
|
||||
|
||||
sudo umount mnt_rw
|
||||
|
||||
../../tile_gen/venv/bin/python ../../tile_gen/shrink_btrfs.py image.btrfs
|
||||
sudo ../../tile_gen/venv/bin/python ../../tile_gen/shrink_btrfs.py image.btrfs \
|
||||
> "shrink_out.log" 2> "shrink_err.log"
|
||||
|
||||
# pigz -k image.btrfs --fast
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
# from /etc/mke2fs.conf
|
||||
# defaults: has_journal,extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize
|
||||
# disabling journalling, since it's a read-only fs, as well as other unused features
|
||||
# extent is actually needed for tail packing small files
|
||||
#
|
||||
# -E extended-options
|
||||
# lazy_itable_init - inode table is fully initialized at the time of file system creation
|
||||
@@ -32,9 +33,10 @@ fallocate -l 300G image.ext4
|
||||
mke2fs -t ext4 -v \
|
||||
-m 0 \
|
||||
-F \
|
||||
-O ^has_journal,^extent,^huge_file,^metadata_csum,^64bit,^extra_isize \
|
||||
-O ^has_journal,^huge_file,^metadata_csum,^64bit,^extra_isize \
|
||||
-E lazy_itable_init=0,nodiscard \
|
||||
-T small \
|
||||
-I 128 \
|
||||
image.ext4
|
||||
|
||||
mkdir mnt
|
||||
|
||||
Reference in New Issue
Block a user