[lxc-users] Can you update templates without full image rebuild?

RayFerguson subscriber at share-foo.com
Tue Mar 7 15:43:20 UTC 2017


I'm cheap, so I don't have great storage on my dev boxes and I have some
custom templates that I want in my images.  My current process is something
like.

lxc publish contain --alias=foo
lxc image export foo
....
extract metadata, add templates, mod the metadata.yaml, create meta.tgz and
root.tgz
...
lxc image import meta.tgz root.tgz

You can see where this is painfully inefficient.  Not only do I decompress
and recompress, lxd does the same thing and more several times causing more
I/O coffee breaks than my old bladder can handle.

Is there any shortcut to just modify the metadata.yaml and templates of an
existing image without the export->decompress->monkey->recompress->import?

I've been tempted to try monkeying the files directly in
/var/lib/lxd/images, but I'm not sure if that would corrupt it by changing
some integrity checksum or something?

Thanks in advance to anyone with the answer and 30 seconds of time to
provide.

Sincerely,

Ray Ferguson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170307/3a3ca4b9/attachment.html>


More information about the lxc-users mailing list