Fedora Atomic and Docker Host Image [was Re: Docker Host Image: Requirements?]

Colin Walters walters at verbum.org
Thu Mar 6 13:45:08 UTC 2014


On Thu, Mar 6, 2014 at 8:19 AM, Sandro red Mathys 
<red at fedoraproject.org> wrote:
> 
> - Create image using ImageFactory (and initialize ostree in %post)
> 
This is possible, but in the realm of options which range from:

1) Hack up current rpm-ostree direct .qcow2 generation code
2) ImageFactory with custom %post
3) Anaconda support

I'd rather at least *attempt* to go straight from #1 to #3.

If anyone wants to play around with #2 though, the relevant code is 
here:
https://github.com/cgwalters/rpm-ostree/blob/master/src/autobuilder/js/libqa.js#L338

One thing that's pretty important to understand about all of this is 
that OSTree needs to own writing the bootloader configuration - not 
anaconda, not grubby out of a %post. That's how the atomic upgrades 
work.

So you can see the code above creates a "stub" extlinux configuration, 
and then "ostree admin deploy" will end up updating it.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/cloud/attachments/20140306/2e8987e9/attachment.html>


More information about the cloud mailing list