Mailinglist Archive: opensuse-autoinstall (59 mails)
| < Previous | Next > |
Re: [opensuse-autoinstall] PXE installation and endless loop
- From: Wayman Smith <wayman.smith@xxxxxxxxxx>
- Date: Thu, 31 Jan 2008 10:00:26 -0500
- Message-id: <47A1E28A.9040004@xxxxxxxxxx>
Mike Marion wrote:
Thanks,
--Wayman
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx
On Thu, Jan 24, 2008 at 02:31:04PM +0100, Hans-Joachim Ehlers wrote:I would like to employ this solution. But if I understand correctly, you use a chroot script to edit the MAC address specific configuration file. I understand the sed portion of what you are doing, but I don't realize how the client machine is accessing the MAC address specific configuration file on the server. But this is the ideal solution.
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.
Thanks,
--Wayman
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx
| < Previous | Next > |