AgentD / squashfs-tools-ng

A new set of tools and libraries for working with SquashFS images
Other
194 stars 30 forks source link

LZMA support #17

Closed aparcar closed 4 years ago

aparcar commented 4 years ago

The source code contains some LZMA strings but I can't seem to activate it, please help me out

AgentD commented 4 years ago

The LZMA identifiers are there mainly for completeness, but LZMA support has been deliberately not implemented in favour of the improved LZMA2 format, generated by the XZ compressor.

aparcar commented 4 years ago

Thank you for that clarification.

aparcar commented 4 years ago

Could you still add LZMA(1) as it is the only supported compression by some routers bootloader?

AgentD commented 4 years ago

From squashfs-tools it looks like it can be done with libxz fairly easily. I will make sure to include it in the next release.

AgentD commented 4 years ago

Implemented in commit acce940 with a small fixup in f45b36e.

Uncompression was tested by generating an image with mksquashfs and unpacking it with rdsquashfs.

Compression was tested by generating an image with tar2sqfs and unpacking it with unsquashfs.