On Thu, Mar 6, 2014 at 8:19 AM, Sandro red Mathys
<red(a)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/li...
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.