From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XiSUv-0002E3-9w for mharc-grub-devel@gnu.org; Sun, 26 Oct 2014 14:25:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiSUo-0002Ds-7g for grub-devel@gnu.org; Sun, 26 Oct 2014 14:25:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiSUi-0001so-8A for grub-devel@gnu.org; Sun, 26 Oct 2014 14:24:54 -0400 Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:60599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiSUi-0001sj-05 for grub-devel@gnu.org; Sun, 26 Oct 2014 14:24:48 -0400 Received: by mail-la0-f52.google.com with SMTP id hz20so4835930lab.11 for ; Sun, 26 Oct 2014 11:24:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=pt4tfNjNgN3S6noae3hO5SB/mo2KWTmKhcfg/O/WYtw=; b=zZZo/tTvFqZlByXm31vUY0iu1XxnklJl/CYz70vQ+3496U5MZWAQSkh60ocvBZt6Qo P8O1YTUAx+zpWVaGsSq8EbzwMJp+o7W0ecH4x4qtsf1nyP2qwjdu6cxx0fppjuviQ14K r3wjxAImPchxnQLPNgrdFzYrqQB15GmVFdaUX+JA3iesVnwgCDjDb7N98YqbJSwgtbHw /4fZt4Ve0ffHF6wLNrkLVW4v3uyQPJ/rjL5WfkIjEgXANV5tPKTxMtBrIiAWHdkRdtIO UOKNOlGRzJ4RlUlWr1NpXfZbgEYkuyVTnTPujld/dN9cFd8zf63DiOwcA3tvGwGcRzmo 43Eg== X-Received: by 10.112.48.3 with SMTP id h3mr18601076lbn.71.1414347886447; Sun, 26 Oct 2014 11:24:46 -0700 (PDT) Received: from opensuse.site (ppp91-76-139-38.pppoe.mtu-net.ru. [91.76.139.38]) by mx.google.com with ESMTPSA id w10sm4146997laz.28.2014.10.26.11.24.45 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Oct 2014 11:24:45 -0700 (PDT) Date: Sun, 26 Oct 2014 21:24:44 +0300 From: Andrei Borzenkov To: Beeblebrox Subject: Re: Grub kfreebsd with pxe & nfs Message-ID: <20141026212444.79c1757e@opensuse.site> In-Reply-To: <20141026200300.70fc4099@rsbsd.rsb> References: <20141026200300.70fc4099@rsbsd.rsb> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.23; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::234 Cc: grub-devel X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2014 18:25:00 -0000 =D0=92 Sun, 26 Oct 2014 20:03:00 +0200 Beeblebrox =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > I have two separate issues involving the {kfreebsd} code in grub.cfg: >=20 > * First is, code snippet to get mount_root to use NFS V3 instead of V2. T= he code for this in FreeBSD's /boot/loader.conf is: {boot-nfsroot-options= =3D=E2=80=9Cnfsv3=E2=80=9D} >=20 > The comparable grub.cfg code should be as below, but does not work (mount= _root hangs for some time, then falls back to V2) > {set kfreebsd.boot.nfsroot.options=3D"nfsv3"} >=20 This should be kFreeBSD....=20 > * Second issue is, how to over-ride the {option root-path "192.168.2.1:/d= ata/amd64"} code defined by dhcp? This is needed for example when I want to= boot a i386 version of FreeBSD rather than amd64. As above, this does not = work correctly: > {set kfreebsd.vfs.root.mountfrom=3D"nfs:192.168.2.1:/data/amd64/alt_root/= path"} >=20 Same. > Also, which file in the grub code can I look through to get a list of opt= ions supported by the kfreebsd operator? >=20 Which operator? freebsd loader simply strips kFreeBSD. prefix from variable name and exports the rest as environment variable for FreeBSD kernel. So list of options is whatever is supported by FreeBSD kernel.