make compressing faster and try to fix booting the image
This commit is contained in:
parent
045d586fb6
commit
8085ed43a2
1 changed files with 21 additions and 10 deletions
|
|
@ -70,6 +70,9 @@ mount ${WINUX_LOOP_DEV}p1 /mnt/winux
|
|||
|
||||
|
||||
export LINUX_LOOP_DEV="$(losetup --find --show --partscan $LINUX_DISK_IMG)"
|
||||
|
||||
tune2fs ${WINUX_LOOP_DEV}p1 -U 1be261e2-a12d-4468-aa45-cbd7e68636eb
|
||||
|
||||
mount ${LINUX_LOOP_DEV}p1 /mnt/linux
|
||||
|
||||
|
||||
|
|
@ -111,25 +114,33 @@ done
|
|||
# Create an archive
|
||||
#
|
||||
|
||||
# echo "making the archive"
|
||||
# zstd -T0 --ultra -22 winux.img -o winux.img.zst
|
||||
echo "making the archive"
|
||||
|
||||
# # decompression with
|
||||
# # unzstd --sparse winux.img.zst
|
||||
# # or
|
||||
# # zstd -d --sparse winux.img.zst -o winux.img
|
||||
# Best compressing rato, but slow and memory hungry (I LIKE IT)
|
||||
#tar --sparse -I 'zstd -T0 --ultra -22 --long=31' \
|
||||
# -cvf winux.img.tar.zst winux.img
|
||||
## SO I PICKED NOW FOR SPEED
|
||||
tar --sparse -I 'zstd -T0 -9' -cvf winux.img.tar.zst winux.img
|
||||
|
||||
############# Another option, seems to be the best option
|
||||
|
||||
tar --sparse -I 'zstd -T0 --ultra -22 --long=31' \
|
||||
-cvf winux.img.tar.zst winux.img
|
||||
# extract
|
||||
# brew install gnu-tar
|
||||
# tar -I zstd -xvf winux.img.tar.zst
|
||||
# on macOS /opt/homebrew/opt/gnu-tar/libexec/gnubin/tar -I 'zstd --long=31' -xvf winux.img.tar.zst winux.img
|
||||
# on macOS gtar or /opt/homebrew/opt/gnu-tar/libexec/gnubin/tar -I 'zstd --long=31' -xvf winux.img.tar.zst winux.img
|
||||
|
||||
|
||||
# FINISHED
|
||||
#=======================================================
|
||||
|
||||
# compressing with XZ. Supprisely it seems to have worst compresion rate than zstd
|
||||
|
||||
# tar --sparse -I 'xz -T0 -9e' -cvf winux.img.tar.xz winux.img
|
||||
## Extracting
|
||||
# tar -I xz -xvf winux.img.tar.xz
|
||||
#
|
||||
# zstd -T0 --ultra -22 winux.img -o winux.img.zst
|
||||
|
||||
# # decompression with
|
||||
# # unzstd --sparse winux.img.zst
|
||||
# # or
|
||||
# # zstd -d --sparse winux.img.zst -o winux.img
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue