melato / lxops

Apache License 2.0
6 stars 0 forks source link

export to simplestreams #25

Closed melato closed 4 months ago

melato commented 4 months ago

Facilitate exporting images and adding them to a simplestreams directory.

The incus-simplestreams program can add an exported image to a simplestreams directory.

incus-simplestreams requires the image root to be in the squashfs format and the metadata.yaml, templates/ to be in a tar.xz file. But if an incus image is created by "incus publish" and then exported with "incus image export", it is exported as a single tar.gz file.

So, the first step is to convert the tar.gz file to a rootfs.squashfs and metadata.tar.xz files.

melato commented 4 months ago

I made several changes to lxops to facilitate this:

But I reverted all these changes, and left only one: