From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 15 18:48:59 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BF2F323E for ; Tue, 15 Jan 2013 18:48:59 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 6C4B3EE9 for ; Tue, 15 Jan 2013 18:48:59 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.17]) by ltcfislmsgpa05.fnfis.com (8.14.5/8.14.5) with ESMTP id r0FImwZH009603 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 15 Jan 2013 12:48:58 -0600 Received: from [10.0.0.102] (10.14.152.61) by smtp.fisglobal.com (10.132.206.17) with Microsoft SMTP Server (TLS) id 14.2.309.2; Tue, 15 Jan 2013 12:48:57 -0600 Subject: Re: off topic but no idea where to ask MIME-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset="windows-1252" From: Devin Teske In-Reply-To: Date: Tue, 15 Jan 2013 10:48:56 -0800 Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Wojciech Puchar X-Mailer: Apple Mail (2.1283) X-Originating-IP: [10.14.152.61] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8327, 1.0.431, 0.0.0000 definitions=2013-01-15_06:2013-01-15,2013-01-15,1970-01-01 signatures=0 Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Devin Teske List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2013 18:48:59 -0000 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.