From owner-freebsd-current@FreeBSD.ORG Tue Jun 28 09:10:06 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8185F1065672; Tue, 28 Jun 2011 09:10:06 +0000 (UTC) (envelope-from gber@freebsd.org) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id 2E6588FC0C; Tue, 28 Jun 2011 09:10:05 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id 648E5C869B; Tue, 28 Jun 2011 10:51:52 +0200 (CEST) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id cj0beVGmf8mp; Tue, 28 Jun 2011 10:51:51 +0200 (CEST) Received: from gjb-host.home (cardhu.semihalf.com [213.17.239.108]) by smtp.semihalf.com (Postfix) with ESMTPSA id C96B0C8580; Tue, 28 Jun 2011 10:51:51 +0200 (CEST) Message-ID: <4E0996AB.9000802@freebsd.org> Date: Tue, 28 Jun 2011 10:54:03 +0200 From: Grzegorz Bernacki User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.10) Gecko/20100630 Thunderbird/3.0.5 MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: rmacklem@FreeBSD.org Subject: NFS/BOOTP problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2011 09:10:06 -0000 Hi, After rebasing to new -current I experienced problem with mounting root via NFS. I was getting error: "Mounting from nfs: failed with error 2: unknown file system.". I use BOOTP and NFSv3 (option NFSCLIENT). It seems that bootp set fs type to 'nfs' and recently NFSv3 was renamed to 'oldnfs'. Patch below fixes the problem. Do you think it is proper solution? Could it be fixed some other better way? thanks, grzesiek diff --git a/sys/nfs/bootp_subr.c b/sys/nfs/bootp_subr.c index 49dbc34..a47092d 100644 --- a/sys/nfs/bootp_subr.c +++ b/sys/nfs/bootp_subr.c @@ -44,6 +44,7 @@ __FBSDID("$FreeBSD: src/sys/nfs/bootp_subr.c,v 1.31 2011/04/25 22:22:51 rmackle #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)