-
Notifications
You must be signed in to change notification settings - Fork 13
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
How to retain original image metadata properties? #7
Comments
@carlosduelo I'm happy to provide a PR, but don't know where to start. Would be awesome if you can point me towards where to start, because this issue is a blocker for me. FWIW: Executing the following commands show the image metadata is missing when requested through
|
It seems like lxd-image-server generates it's own metadata based on the directory structure, thus completly ignoring the image's metadata I think the best way would be to:
|
How can I retain the original image metadata properties when I distribute images using
lxd-image-server
...? I do have some custom logic, which does some magic based upon the imagevariant
. But this property seems to get lost when the image is downloaded:How to reproduce
I'm building different variants of the same distribution using
distrobuilder
and upload them tolxd-image-server
usingscp
. After upload I'm executinglxd-image-server update
to rebuild the json files. Then, I pull the images to a local lxd using the following commands:And display the image metadata with:
As you can see, there is no
variant
property. However, if you download the lxd.tar.xz file, unpack it and look at the metadata.yaml its there (the description is different as well):The text was updated successfully, but these errors were encountered: