Open melato opened 7 months ago
I modifed the "lxops publish" command, and accidentally linked the commit to #25.
"incus publish" seems to use default properties if no properties are specified on the command line. If any property is specified, then the unspecified properties are not set.
Modified "lxopso publish" to just pass arguments to "incus publish", without doing anything else. Any scripts that use this should set all 7 properties: architecture, os, release, variant, serial, name, description.
The incus publish command allows setting image properties: description, name, os, release, serial, variant, which go into the image metadata.yaml file.
An example from an images:alpine/3.19 image:
When I use "incus publish" to create an image from an instance. I typically set only the alias (which is not in metadata.yaml). This causes the new image to have the same properties as the image that the instance was created from. This was not a problem while I used images by alias. But I recently tried to make a simplestreams image server from my images, and they were listed with misleading metadata.
Modify "lxops instance publish" so that it can set the image properties. The "name" and "description" properties seem to have a certain structure that incorporates other properties (release, architecture, serial, variant). Generate "name" and "description" automatically. From the above properties, only "alpinelinux" needs to be specified, and it can default to the "os" of the original image.