From owner-freebsd-stable@FreeBSD.ORG Thu Jan 8 09:24:09 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0122B16A4CE for ; Thu, 8 Jan 2004 09:24:09 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B65243D53 for ; Thu, 8 Jan 2004 09:24:06 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.10/8.12.3) with ESMTP id i08HO2A7013160; Thu, 8 Jan 2004 09:24:02 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.10/8.12.3/Submit) id i08HNt6X013140; Thu, 8 Jan 2004 09:23:55 -0800 Date: Thu, 8 Jan 2004 09:23:55 -0800 From: Brooks Davis To: David Malone Message-ID: <20040108172355.GB6216@Odin.AC.HMC.Edu> References: <3FFCE6DD.4000402@tec.karelen.elektra.ru> <20040108102406.GA54017@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LyciRD1jyfeSSjG0" Content-Disposition: inline In-Reply-To: <20040108102406.GA54017@walton.maths.tcd.ie> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: Sergey Lapin cc: freebsd-stable@freebsd.org Subject: Re: Two silly questions aboun netbooting X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2004 17:24:09 -0000 --LyciRD1jyfeSSjG0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 08, 2004 at 10:24:06AM +0000, David Malone wrote: > On Thu, Jan 08, 2004 at 08:13:01AM +0300, Sergey Lapin wrote: > > 1. I have p1-75 with a small disk (40Mb), where I want to put kernel. > > And then want it to mount root from 192.168.1.1:/nfsroot, so diskless > > scripts located there took control and system should be running? > > The best could be if DHCP/BOOTP be avoided since there are such > > servers exist in our network and running on non-standard ports could > > become a nightmare... >=20 > It should be possible. I can suggest two ways. If you want to make > it look really like a diskless boot, you can probably hack the code > in /usr/src/sys/nfs/bootp_subr.c to pretend it sends a request and > pretend it receives a response and hard code the IP address and > root path in there. The patch in this PR claims to do it: http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/54383 The patch seems to suffer from massive cut and paste damage (tabs turned to spaces) so I haven't looked at it in detail. If you do get it to work and can produce a cleaned up copy, that would be useful. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --LyciRD1jyfeSSjG0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE//ZIoXY6L6fI4GtQRAqkfAKCIVNPkpuXvgd+E1R1PtrOGhllYQwCgwHXn uuGRrrYti+WUdc840RvMwYM= =biku -----END PGP SIGNATURE----- --LyciRD1jyfeSSjG0--