From nobody@FreeBSD.org  Thu Apr 29 21:14:27 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id B68671065673
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Apr 2010 21:14:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id A45CE8FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Apr 2010 21:14:27 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o3TLERLQ045964
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Apr 2010 21:14:27 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o3TLERoD045963;
	Thu, 29 Apr 2010 21:14:27 GMT
	(envelope-from nobody)
Message-Id: <201004292114.o3TLERoD045963@www.freebsd.org>
Date: Thu, 29 Apr 2010 21:14:27 GMT
From: "Brian A. Seklecki" <bseklecki@collaborativefusion.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: PXE loader(8) sets nfs_opts[] = "export" causing boot error: "mount option <export> is unknown"
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         146162
>Category:       kern
>Synopsis:       [pxeboot] PXE loader(8) sets nfs_opts[] = "export" causing boot error: "mount option <export> is unknown"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 29 21:20:03 UTC 2010
>Closed-Date:    
>Last-Modified:  Mon May 10 04:18:07 UTC 2010
>Originator:     Brian A. Seklecki
>Release:        FreeBSD 8/amd64 RELENG_8 stable
>Organization:
Collaborative Fusion, Inc.
>Environment:
FreeBSD cyclonus 8.0-STABLE FreeBSD 8.0-STABLE #0: Thu Mar 25 19:07:58 EDT 2010     root@cyclonus:/usr/obj/export/src-RELENG_8/src/sys/GENERIC  amd64

>Description:
Both:

  sys/nfsclient/nfs_vfsops.c
  fs/nfsclient/nfs_clvfsops.c 

  Have:

static const char *nfs_opts[] = { "from", "nfs_args",
    "noatime", "noexec", "suiddir", "nosuid", "nosymfollow", "union",
    "noclusterr", "noclusterw", "multilabel", "acls", "force", "update",
    "async", "dumbtimer", "noconn", "nolockd", "intr", "rdirplus", "resvport",
    "readdirsize", "soft", "hard", "mntudp", "tcp", "udp", "wsize", "rsize",
    "retrans", "acregmin", "acregmax", "acdirmin", "acdirmax", 
    "deadthresh", "hostname", "timeout", "addr", "fh", "nfsv3", "sec",
    "maxgroups", "principal", "negnametimeo",
    NULL };

'export' is not an option, as any NFS client file system wouldn't be assume to have one.  

But somehow the VFS->NFS Client/Diskless code is setting  and its failing in the array passed to:

   kern/vfs_mount.c::vfs_filteropt()
>How-To-Repeat:
PXE Boot a system with NFS (not TFTP) root file system:

Use the following config:

DHCP:
option root-path "192.168.224.67:/export/tftpboot/root-db";

loader.rc:

set vfs.root.mountfrom="nfs"
set vfs.root.mountfrom.options="rw"
set boot.nfsroot.path="/export/tftpboot/root-web"
set boot.nfsroot.server="192.168.224.67"

loader.conf:

mfsroot_load="NO"
nfsclient_load="YES"
init_path=/stand/sysinstall
autoboot_delay=2

The kernel DMESG/KLOG output prints:

 "mount option <export> is unknown"

My original message was:

  http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2010-04/msg01137.html

I can provide screenshot.
>Fix:
To be determined.

>Release-Note:
>Audit-Trail:
>Unformatted:
