From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 27 17:59:26 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05BE6106575F for ; Tue, 27 Jul 2010 17:59:26 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from mail.ambrisko.com (mail.ambrisko.com [64.174.51.43]) by mx1.freebsd.org (Postfix) with ESMTP id B87028FC38 for ; Tue, 27 Jul 2010 17:59:24 +0000 (UTC) X-Ambrisko-Me: Yes Received: from server2.ambrisko.com (HELO www.ambrisko.com) ([192.168.1.2]) by ironport.ambrisko.com with ESMTP; 27 Jul 2010 10:31:19 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.14.3/8.14.3) with ESMTP id o6RHgCau070018; Tue, 27 Jul 2010 10:42:12 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.14.3/8.14.3/Submit) id o6RHgB6M070017; Tue, 27 Jul 2010 10:42:11 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <201007271742.o6RHgB6M070017@ambrisko.com> In-Reply-To: To: Garrett Cooper Date: Tue, 27 Jul 2010 10:42:11 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Cc: FreeBSD-Hackers Subject: Re: Set default pxeboot vfs.root.mountfrom to nfs? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jul 2010 17:59:26 -0000 Garrett Cooper writes: | Hi Hackers, | I realize this is a trivial patch, but it's a minor item that I | found kind of fascinating (and not thoroughly documented elsewhere | because many examples are booting mfsroots instead of directly booting | off nfs roots), but I'm proposing that pxeboot default to | vfs.root.mountfrom="nfs" to reduce the need for special case | loader.conf files just for pxe booting (and thus, enable | out-of-the-box netbooting ^o^!!!). | Thoughts? | | Index: boot/i386/libi386/pxe.c | =================================================================== | --- boot/i386/libi386/pxe.c (revision 209563) | +++ boot/i386/libi386/pxe.c (working copy) | @@ -308,6 +308,7 @@ | } | setenv("boot.nfsroot.server", inet_ntoa(rootip), 1); | setenv("boot.nfsroot.path", rootpath, 1); | + setenv("vfs.root.mountfrom", "nfs", 0); | setenv("dhcp.host-name", hostname, 1); | } | } Interesting, are you looking at my patch from work or came up with the same thing? We had this patch here for years. I haven't checked it in due to tracking done why it wasn't done in the first place so I didn't break any assumptions. FWIW, I have seen no issues with patch in either NFS boots or MFS roots. Doug A.