Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2013 10:48:56 -0800
From:      Devin Teske <devin.teske@fisglobal.com>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: off topic but no idea where to ask
Message-ID:  <A6BB32A8-2A60-4A0F-BDC4-DEABADAE7317@fisglobal.com>
In-Reply-To: <alpine.BSF.2.00.1301151916180.2295@wojtek.tensor.gdynia.pl>
References:  <alpine.BSF.2.00.1301151916180.2295@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jan 15, 2013, at 10:18 AM, Wojciech Puchar wrote:

> does anyone know a PXE image (just like /boot/pxeboot) that can be placed=
 on tftp server and the only thing it will do would be loading first sector=
 from first local disk at 0x07c00 and booting as with normal hard drive.
>=20
> what i need is to be able to decide from server side if given computer bo=
ots from NFS or hard disk.
>=20

Yeah, no prob.

NOTE: Our PXE server is Linux (*blech) but I assure you the only thing that=
 changes is the paths (/etc/dhcpd.conf becomes /usr/local/etc/dhcpd.conf fo=
r example -- the pxelinux.0 image works fine served-up by ISC dhcpd on Free=
BSD).

First part of the recipe:

$ awk '/filename/&&!/^[[:space:]]*(#|$)/{print}' /etc/dhcpd.conf
	filename "pxelinux.0";
$ ls -l /tftpboot/pxelinux.0
lrwxrwxrwx  1 root root 15 May 15  2012 /tftpboot/pxelinux.0 -> pxelinux.0-=
3.84
$ file /tftpboot/pxelinux.0-3.84=20
/tftpboot/pxelinux.0-3.84: data

Next part of the recipe=85 The /etc/pxelinux.cfg/default file:

DISPLAY /boot/include/boot.msg
DEFAULT wpuchar_nfs
PROMPT 1
ONTIMEOUT hdd
TIMEOUT 50
TOTALTIMEOUT 6000
LABEL hdd
	LOCALBOOT 0x80
LABEL wpuchar_nfs
	=85 your nfs boot config =85

Last but not least, =85

$ cat /tftpboot/boot/include/boot.msg
Press ENTER to boot from WPuchar's NFS server (defaulting to HDD boot in 5 =
seconds)...

--=20
Devin

_____________
The information contained in this message is proprietary and/or confidentia=
l. If you are not the intended recipient, please: (i) delete the message an=
d all copies; (ii) do not disclose, distribute or use the message in any ma=
nner; and (iii) notify the sender immediately. In addition, please be aware=
 that any message addressed to our domain is subject to archiving and revie=
w by persons other than the intended recipient. Thank you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A6BB32A8-2A60-4A0F-BDC4-DEABADAE7317>