Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lxc integration #129

Merged
merged 4 commits into from
Sep 18, 2024
Merged

Conversation

ariel-miculas
Copy link
Collaborator

@ariel-miculas ariel-miculas commented Sep 18, 2024

Prepare PuzzleFS for LXC integration:

  • Store the empty descriptor in blobs/sha256 so that skopeo can copy PuzzleFS images
  • Move the PuzzleFS Image Rootfs at the beginning of the layers array in the Image Manifest for faster lookup and for media type identification by the OCI template in LXC
  • Pass the oci_dir and tag in the format <oci_dir>: so it's compatible with the mount helper defined in the OCI template in LXC
  • Finally, update the puzzlefs version to 0.2.0

This will support passing puzzlefs as a mount helper in the lxc oci
template [1].

[1] lxc/lxc@1a2da75

Signed-off-by: Ariel Miculas-Trif <[email protected]>
…n the Image Manifest

Let's make the PuzzleFS image rootfs the first layer so it's easy to
find. The LXC oci template also looks at the first layer in the array to
identify the image type (see getlayermediatype) [1]

[1] lxc/lxc@1a2da75

Signed-off-by: Ariel Miculas-Trif <[email protected]>
Otherwise skopeo complains that it can't find the blob referenced by the
empty descriptor.

Signed-off-by: Ariel Miculas-Trif <[email protected]>
@ariel-miculas ariel-miculas force-pushed the lxc_integration branch 2 times, most recently from 130c995 to a9f165f Compare September 18, 2024 22:04
@ariel-miculas ariel-miculas merged commit 4afc76a into project-machine:master Sep 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant