Where is loader.conf.gz?

Andrey V. Elsukov bu7cher at yandex.ru
Fri Aug 8 10:57:46 UTC 2014


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


More information about the freebsd-hackers mailing list