Date: Fri, 08 Aug 2014 14:56:52 +0400 From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: hiren panchasara <hiren@freebsd.org>, Xin LI <d@delphij.net> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: Where is loader.conf.gz? Message-ID: <53E4ACF4.4030001@yandex.ru> In-Reply-To: <53E4A6E7.3080309@yandex.ru> References: <CALCpEUGuC06iKcOHRkLmJr13ycpP%2Bnmm3fL2QT-iszJP3UiVjA@mail.gmail.com> <53E3C44C.9000500@delphij.net> <CALCpEUGBMD=qmOF65dv6m%2BGRTenjZZ8BTDF68KQZ2OPs3AnaOA@mail.gmail.com> <53E4A6E7.3080309@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On 08.08.2014 14:31, Andrey V. Elsukov wrote: > On 08.08.2014 01:46, hiren panchasara wrote: >> /* pass file name to the different filesystem open routines */ >> besterror = ENOENT; >> for (i = 0; file_system[i] != NULL; i++) { >> fs = file_system[i]; >> error = (fs->fo_open)(file, f); <-----zf_open() is called >> which returns ENOENT >> if (error == 0) >> goto ok; >> if (error != EINVAL) >> besterror = error; >> } >> error = besterror; >> >> So, the error is ENOENT at this point. But it fails in what happens after this: > > It looks like loader.efi should first open /boot/loader.conf via > devopen() a bit earlier in this code. Did you see this attempt in the > tcpdump? Can you stop loader and see what value has currdev environment > variable? Sorry, devopen() doesn't open a file, but nfs_fsops should be tried first. Maybe this code has been failed in nfs_open? #ifndef __i386__ if (strcmp(f->f_dev->dv_name, "net") != 0) return(EINVAL); #else -- WBR, Andrey V. Elsukov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53E4ACF4.4030001>