On Thu, Mar 6, 2014 at 8:19 AM, Sandro red Mathys &lt;red@fedoraproject.org&gt; wrote:<br>
<blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">
- Create image using ImageFactory (and initialize ostree in %post)</div></blockquote><br><div>This is possible, but in the realm of options which range from:</div><div><br></div><div>1) Hack up current rpm-ostree direct .qcow2 generation code</div><div>2) ImageFactory with custom %post</div><div>3) Anaconda support</div><div><br></div><div>I'd rather at least *attempt* to go straight from #1 to #3.</div><div><br></div><div>If anyone wants to play around with #2 though, the relevant code is here:</div><div><a href="https://github.com/cgwalters/rpm-ostree/blob/master/src/autobuilder/js/libqa.js#L338">https://github.com/cgwalters/rpm-ostree/blob/master/src/autobuilder/js/libqa.js#L338</a></div><div><br></div><div>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.</div><div><br></div><div>So you can see the code above creates a "stub" extlinux configuration, and then "ostree admin deploy" will end up updating it.</div><div><br></div>