[CentOS] Post postinstall configuration -- Setup Agent (aka firstboot)

Fri Dec 9 22:43:17 UTC 2005
Bryan J. Smith <thebs413 at earthlink.net>

Karanbir Singh <Mail-Lists at karan.org> wrote:
> Something completely off the top of my head : why not use a
> %post --nochroot and copy the running environments
resolv.conf
> into the /mnt/sysimage/etc/ directory :) might work, might
not.
> please try and let us know how you get along!

That's _exactly_ what I do when I haven't pre-packaged it
into a RPM.

> If you do decide to go down this route look at :
> /usr/share/firstboot
> a lot of the dep's for firstboot itself come from its
> requests on X, looking through the code - you should be
> able to easily work around that. Specific files you
> prolly want to look at are
> firstboot.py and textWindow.py
> Add hooks at an appropriate place.

Oh, I just meant the firstboot bash initscript, not the GUI
"Setup Agent" it runs.  There is enough in the firstboot bash
script to show you how it does its simple conditionals.



-- 
Bryan J. Smith                | Sent from Yahoo Mail
mailto:b.j.smith at ieee.org     |  (please excuse any
http://thebs413.blogspot.com/ |   missing headers)