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 10:45 PM, Colin Walters <walters@xxxxxxxxxx> wrote:
> 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

Sorry, missing something here. What would I need that code for? I was
actually thinking about writing something like:

%post
ostree admin os-init fedora-atomic
ostree remote add fedora-atomic http://rpm-ostree.cloud.fedoraproject.org/repo
ostree pull fedora-atomic
fedora-atomic/rawhide/x86_64/buildmaster/server/docker-io
ostree admin deploy --os=fedora-atomic --karg-proc-cmdline
--karg=<stuff> fedora-atomic:
fedora-atomic/rawhide/x86_64/buildmaster/server/docker-io
%end

> 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.

Hm, does Anaconda write the bootloader config before or after
executing %post scripts? Either the above could still work or not, I
guess.

> 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
>
_______________________________________________
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