Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(squash): decouple the compressor for dracut and dracut-squash
Previously dracut-squash module inherits the compressor name from dracut, but actually the compressors are totally different. For dracut, the compressor is zstd/gzip/lzop cmdline tools, for dracut-squash, the compressor is the libzstd/libz/liblzo libraries integrated by mksquashfs. However mksquashfs support less compressors than dracut, such as bzip2, which is not supported by mksquashfs, so compressor decoupling seems to be a good idea to handle this. This patch introduces a new dracut cmdline argument --squash-compressor, by which the compressor and compressor specific options can be passed to mksquashfs as --squash-compressor "lzo -Xalgorithm lzo1x_1_15". Signed-off-by: Tao Liu <ltao@redhat.com>
- Loading branch information