On Thu, Jan 24, 2008 at 02:31:04PM +0100, Hans-Joachim Ehlers wrote:
During the post install a script on the client removes its PXE and/or dhcp configuration on the installation. Thus the next pxe boot will fail and the client should proceed with the local boot.
This is exactly how our setup works, and it works well. You can either use a symlink/file that you delete, or file that you edit on the fly in scripts (I recommend chroot as the install was likely successful by then and happens before initial reboot). We use the files named by the mac address.. easy to get from running system like so: mycfg=`ifconfig $pxe_dev | awk '/HWaddr/{print $NF}' | sed 's/:/-/g' | tr '[:upper:]' '[:lower:]'` mycfg="01-$mycfg" i.e. this: eth1 Link encap:Ethernet HWaddr 00:0C:6E:7A:69:D1 results in: $ echo $mycfg 01-00-0c-6e-7a-69-d1 We setup files with default declarations for the install and for the boot from disk options, then use sed to flip which is commented out (mounted the /tftpboot dir onto /tmp/pxe): mv -f /tmp/pxe/pxelinux.cfg/$mycfg /tmp/pxe/pxelinux.cfg/${mycfg}.orig sed -e 's/^DEFAULT/#DEFAULT/g' -e 's/^#\(DEFAULT disk\)/\1/g' /tmp/pxe/pxelinux.cfg/${mycfg}.orig > /tmp/pxe/pxelinux.cfg/$mycfg I'm sure plenty know this but for the few that might not; the really nice side-effect of having hosts set in the bios to pxe boot first is that it makes doing widespread OS upgrades/installs a piece of cake. We have a batched script for configuring the install info, then can power on whole racks of boxes at once and never have to touch them. -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com Commentator in "Triple Play Baseball" for PS2: "The key to scoring runs is cashing in when you're in scoring position." -- Thank you, Captain Obvious! -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org