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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 6, 2014 at 8:19 AM, Sandro red Mathys <red@xxxxxxxxxxxxxxxxx> 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.

_______________________________________________
cloud mailing list
cloud@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/cloud
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Big List of Linux Books]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux