Date: Wed, 30 Jan 2013 11:18:14 +0000 From: "Eggert, Lars" <lars@netapp.com> To: Craig Rodrigues <rodrigc@crodrigues.org> Cc: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: Re: mounting root from NFS via ROOTDEVNAME Message-ID: <D4D47BCFFE5A004F95D707546AC0D7E91F69E244@SACEXCMBX01-PRD.hq.netapp.com> In-Reply-To: <D4D47BCFFE5A004F95D707546AC0D7E91F69BF73@SACEXCMBX01-PRD.hq.netapp.com> References: <D4D47BCFFE5A004F95D707546AC0D7E91F671642@SACEXCMBX01-PRD.hq.netapp.com> <CAG=rPVergKVKUO=VySvM65WPJO_Od1tkWvx45tM_sEyO65mwUg@mail.gmail.com> <19F92E0C-F004-4F16-A5FC-A10DF84BDCCF@netapp.com> <D4D47BCFFE5A004F95D707546AC0D7E91F674CDE@SACEXCMBX01-PRD.hq.netapp.com> <CAG=rPVezTjcTp_AXsOMWYCSM1_xFJDvmUwdguHdZBABanGGrxw@mail.gmail.com> <D4D47BCFFE5A004F95D707546AC0D7E91F69BF73@SACEXCMBX01-PRD.hq.netapp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Jan 30, 2013, at 10:32, "Eggert, Lars" <lars@netapp.com> wrote: > On Jan 29, 2013, at 20:22, Craig Rodrigues <rodrigc@crodrigues.org> wrote= : >> In src/sys/boot/common/boot.c which is part of the loader (not the kerne= l), >> if you look in the getrootmount() function, >> you will see that the loader will try to figure out where the root file >> system >> is by parsing /etc/fstab, and looking for the "/" mount. >>=20 >> So, if your kernel is located in: >>=20 >> /usr/home/elars/dst/boot/kernel/kernel >>=20 >> Then create a file /usr/home/elars/dst/etc/fstab file with something lik= e: >>=20 >> # Device Mountpoint FSType >> Options Dump Pass >> 10.11.12.13:/usr/home/elars/dst/ / nfs ro 0 = 0 >=20 > Thanks, will try that! doesn't work. The kernel never leaves the "DHCP/BOOTP timeout for server"-loop unless I h= and out a root-path option via DHCP. I tried your tip above, I tried setting ROOTDEVNAME in the kernel, I create= d a /boot.config with "-r" in it on the NFS root - all to no avail.=20 >> Alternatively, if you don't want to create an /etc/fstab file, then >> you could put something like this in your loader.conf file: >>=20 >> vfs.root.mountfrom=3Dnfs:10.11.12.13:/usr/home/elars/dst >=20 > Will try that too, but not sure if this works with our custom loader. Doesn't seem to work either. Lars=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D4D47BCFFE5A004F95D707546AC0D7E91F69E244>