From owner-svn-src-all@FreeBSD.ORG Wed Jun 29 15:17:29 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4D79106566B; Wed, 29 Jun 2011 15:17:29 +0000 (UTC) (envelope-from gber@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D4A2E8FC19; Wed, 29 Jun 2011 15:17:29 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p5TFHTgC002905; Wed, 29 Jun 2011 15:17:29 GMT (envelope-from gber@svn.freebsd.org) Received: (from gber@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p5TFHTLp002903; Wed, 29 Jun 2011 15:17:29 GMT (envelope-from gber@svn.freebsd.org) Message-Id: <201106291517.p5TFHTLp002903@svn.freebsd.org> From: Grzegorz Bernacki Date: Wed, 29 Jun 2011 15:17:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r223673 - head/sys/nfs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2011 15:17:30 -0000 Author: gber Date: Wed Jun 29 15:17:29 2011 New Revision: 223673 URL: http://svn.freebsd.org/changeset/base/223673 Log: Set proper root device name when legacy NFS client is compiled into kernel. Approved by: cognet (mentor) Modified: head/sys/nfs/bootp_subr.c Modified: head/sys/nfs/bootp_subr.c ============================================================================== --- head/sys/nfs/bootp_subr.c Wed Jun 29 14:47:20 2011 (r223672) +++ head/sys/nfs/bootp_subr.c Wed Jun 29 15:17:29 2011 (r223673) @@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$"); #include "opt_bootp.h" +#include "opt_nfs.h" #include #include @@ -1699,6 +1700,9 @@ bootpc_init(void) } rootdevnames[0] = "nfs:"; +#ifdef NFSCLIENT + rootdevnames[1] = "oldnfs:"; +#endif mountopts(&nd->root_args, NULL); for (ifctx = gctx->interfaces; ifctx != NULL; ifctx = ifctx->next)