Skip to content

Commit

Permalink
change compression algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
parmigggiana committed Jul 27, 2024
1 parent 3c776dc commit 43f7652
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion miso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,14 @@ fi
mkdir -p $MISO_BUILD_DIR/{staging/{EFI/boot,boot/grub/x86_64-efi,isolinux,live},tmp}

# Squash filesystem
# compression algorithms available: gzip, lzo, lzma, xz, zstd
# xz has the highest compression ration, but it's also the slowest to decompress
# zstd is the fastest to decompress, and it's close to xz in compression ratio
echo -e "${_BLUE}Squashing filesystem ...${_RESET_COLOR}"
mksquashfs \
$MISO_BUILD_DIR/chroot \
$MISO_BUILD_DIR/staging/live/filesystem.squashfs \
-b 1048576 -comp xz -Xdict-size 100% \
-b 1048576 -comp zstd \
-noappend \
-e boot chroot_scripts
# proc sys run dev
Expand Down

0 comments on commit 43f7652

Please sign in to comment.