Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Support squashfs as compression algorithm #6273
LXD already supports unpacking squashfs in a number of situations but it doesn't support using mksquashfs to generate squashfs based images or backups.
The existing compression logic for images and backups should be updated so that one can set the compression_algorithm to squashfs.
Consumption of squashfs images should already pretty much just work, consuming squashfs backups will need a few code updates too.
So I forgot just how dependent we unfortunately are of tarballs...
What we effectively want in this case is a way to use squashfs as a sort of compressor for a standard tar stream as is coming out of
We'll want to stream the tarball output of Export() through
For this, you'll want to:
With all that done, you should be able to:
This would effectively exercise all the code paths above and should result in two working containers.