PXE building clients with multiple NICs rendered a problem with getting the NIC configs right. Instead of delaring the netstuff in the autoinstall-script (which for some reason mix the NICs up) I copied the relevant files (ifcfg-eth0, ifcfg-eth1, ifcfg-eth2 and resolv.conf into ../overrides/[$imagename]-[$HOSTNAME]/
Following the client boot, /sbin/dhclient-script gets executed, if you read this script you'll notice that this script will RECREATE /etc/resolv.conf. So I edited the client image file (/var/lib/systemimager/images/[myimage]/sbin/dhclient-script: In the first function (save_previous) I changed: mv $1 $1.predhclient to cp $1 $1.predhclient In the second function (make_resolv_conf) I changed the first redirector to an append: echo '; generated by /sbin/dhclient-script' > /etc/resolv.conf to echo '; generated by /sbin/dhclient-script' >> /etc/resolv.conf Then when the client pxe-boots, it will get the overrides, dump them in root, and move them to their destinations, without the resolver file getting reborn. Oh yeah I added in my auto-install script: chroot /a/ mv -f ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0 (and the same for the other files) Hope this is of use. Cheers; George Baben Software Engineer Vibrant Media [EMAIL PROTECTED] +44 (0) 207 239 0134 ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id�66&op=click _______________________________________________ Sisuite-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/sisuite-users
