From owner-freebsd-current@FreeBSD.ORG Thu Oct 21 18:53:51 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F30216A4CE for ; Thu, 21 Oct 2004 18:53:51 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1ED4243D2D for ; Thu, 21 Oct 2004 18:53:51 +0000 (GMT) (envelope-from dettloff@gmail.com) Received: by rproxy.gmail.com with SMTP id v18so30363rnb for ; Thu, 21 Oct 2004 11:53:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=L5SrKYOremXQrMg4i4GWWkx1CE20EqItrsVPBuuu7QGnqn+v8LTHeRYct/DapUqY3aXPtlwO3+rmDaELm5dHp0ByM6rCiYQW7BD3ixjOjSAk2aEVtWwrmNaKoV6sYbZEjyhfuPDrGYY8rS1olHsPThDeY4L7rxg8Iril0Vv/LO4= Received: by 10.38.8.2 with SMTP id 2mr282546rnh; Thu, 21 Oct 2004 11:53:50 -0700 (PDT) Received: by 10.38.8.3 with HTTP; Thu, 21 Oct 2004 11:53:50 -0700 (PDT) Message-ID: <5b0444b504102111539dad203@mail.gmail.com> Date: Thu, 21 Oct 2004 20:53:50 +0200 From: Tim Dettloff To: Poul-Henning Kamp In-Reply-To: <31660.1098380462@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <5b0444b504102016381f8e3f96@mail.gmail.com> <31660.1098380462@critter.freebsd.dk> cc: current@freebsd.org Subject: Re: Solution? Re: pxe-install on FreeBSD 5.3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Tim Dettloff List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 18:53:51 -0000 As far as I can see it does not, but if thats is the case, it could easily be changed :o) On Thu, 21 Oct 2004 19:41:02 +0200, Poul-Henning Kamp wrote: > In message <5b0444b504102016381f8e3f96@mail.gmail.com>, Tim Dettloff writes: > >After a lot of searching I think I have found the problem. > > > >Both sys/nfsclient/nfs_diskless.c (, bootp_subr.c) and sys/dev/md/md.c > >sets rootdevnames[0] which is used by sys/kern/vfs_mount.c to select a > >root. On 5.2.1 nfs set it first and the setting was later overwritten > >by md. I suspect that this commit > >http://lists.freebsd.org/pipermail/cvs-src/2004-March/021449.html > >changed that order, so that nfs now overwrites the md setting. > >I suggest that nfs is modified so it sets rootdevnames[1] instead of > >[0]. As far as I can see [1] this is not used for anything. That way > >md is alway tried first and then nfs. > > Doesn't the search terminate if [0] is NULL ? > > > > > >>Tim. > > > >On Wed, 20 Oct 2004 05:16:51 +0000 (UTC), Bjoern A. Zeeb > > wrote: > >> On Tue, 19 Oct 2004, Tim Dettloff wrote: > >> > >> Hi, > >> > >> > On 5.2.1-RELEASE i could just copy /boot from the boot-only iso to my > >> > tftp-sever, compile pxeboot with LOADER_TFTP_SUPPORT=YES and I was > >> > ready to pxeinstall. > >> > > >> > When I do the same with 5.3-RC1 the kernel wants to mount root from > >> > NFS instead of /dev/md0. > >> > > >> > What is the reason for this change? > >> > >> I don't know but I had posted a solution earlier this year. If I > >> rememeber correctly it had been setting > >> set vfs.root.mountfrom="ufs:/dev/md0c" > >> in boot/loader.rc. > >> > >> > >> > In addition it would really be nice if the iso contained a > >> > pxeboot build with LOADER_TFTP_SUPPORT=YES in addition to the > >> > standard one. I imagine it is only a couple of lines extra in the makefile..? > >> > >> +1 from me ;) > >> > >> -- > >> Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT > >> > >_______________________________________________ > >freebsd-current@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-current > >To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. >