Karanbir Singh Mail-Lists@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.