From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 10:32:08 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 295B27BC; Fri, 8 Aug 2014 10:32:08 +0000 (UTC) Received: from forward8l.mail.yandex.net (forward8l.mail.yandex.net [IPv6:2a02:6b8:0:1819::8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D59102DEE; Fri, 8 Aug 2014 10:32:07 +0000 (UTC) Received: from smtp17.mail.yandex.net (smtp17.mail.yandex.net [95.108.252.17]) by forward8l.mail.yandex.net (Yandex) with ESMTP id 96FCB1A40D10; Fri, 8 Aug 2014 14:31:56 +0400 (MSK) Received: from smtp17.mail.yandex.net (localhost [127.0.0.1]) by smtp17.mail.yandex.net (Yandex) with ESMTP id 0F0DF190060C; Fri, 8 Aug 2014 14:31:53 +0400 (MSK) Received: from 84.201.167.16-vpn.dhcp.yndx.net (84.201.167.16-vpn.dhcp.yndx.net [84.201.167.16]) by smtp17.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id O1a3Tq2fTQ-VrLi99IW; Fri, 8 Aug 2014 14:31:53 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: b4ff4c40-05f1-42f8-8fa3-baf462f8a90e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1407493913; bh=4YbSNKs92bB+IIWsU0Z6I5mwNHGZQRcERT9Mhvh/rZs=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:X-Enigmail-Version:Content-Type: Content-Transfer-Encoding; b=ULKrjqwGofIzyoZHprMDtEGWKfETyY1i5ByQysWR/BM6usp1vmBU6yOn4yWxC8H7X /09NinXSnomDbxxs7iOEOgXmcwsuLXyeTXkma+D96L90GxYFOXFMSw8wqpT9jxJMB0 tHjNX2BdyE0tIuHR2nEnRZPyA1JJwA96r4OOBvzY= Authentication-Results: smtp17.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <53E4A6E7.3080309@yandex.ru> Date: Fri, 08 Aug 2014 14:31:03 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: hiren panchasara , Xin LI Subject: Re: Where is loader.conf.gz? References: <53E3C44C.9000500@delphij.net> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2014 10:32:08 -0000 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? -- WBR, Andrey V. Elsukov