]> git.proxmox.com Git - mirror_lxc.git/commit
Add support for squashfs images in oci via atomfs
authorScott Moser <smoser@brickies.net>
Tue, 21 Feb 2023 18:31:06 +0000 (13:31 -0500)
committerScott Moser <smoser@brickies.net>
Mon, 27 Feb 2023 14:06:37 +0000 (09:06 -0500)
commit1a2da75b6e8431f3530ebd3f75442d3bd5eec5e2
tree689c4c29e8ff00e4332bd459dfe99ecf17c6808d
parent71f7e788d9f45542d10bf143e462ee9affe72e4f
Add support for squashfs images in oci via atomfs

This adds support to the oci template for squashfs images.
It uses 'atomfs' from [1] to accomplish this.

Squashfs images (media type
application/vnd.stacker.image.layer.squashfs+zstd+verity) have several
benefits compared to tar+gz:

 * immediately mountable
 * read-only filesystem
 * verity data present in oci manifest.

I presented this at Fosdem 2023 at [2].

The 'atomfs' program can be replaced by passing '--mount-helper'
argument to the oci template.

    mount-helper mount oci:<oci_dir>:<oci_name> <mountpoint>
    mount-helper umount <mountpoint>

[1] https://github.com/project-machine/atomfs
[2] https://fosdem.org/2023/schedule/event/container_secure_storage/

Signed-off-by: Scott Moser <smoser@brickies.net>
templates/lxc-oci.in