From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xxyae-0008K3-7f for barebox@lists.infradead.org; Mon, 08 Dec 2014 13:43:06 +0000 Received: from dude.hi.4.pengutronix.de ([10.1.0.7] helo=dude.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XxyaG-0004d9-Cs for barebox@lists.infradead.org; Mon, 08 Dec 2014 14:42:40 +0100 From: Lucas Stach Date: Mon, 8 Dec 2014 14:42:39 +0100 Message-Id: <1418046159-29843-12-git-send-email-l.stach@pengutronix.de> In-Reply-To: <1418046159-29843-1-git-send-email-l.stach@pengutronix.de> References: <1418046159-29843-1-git-send-email-l.stach@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 12/12] efi: mount efivarfs by default if enabled To: barebox@lists.infradead.org Signed-off-by: Lucas Stach --- common/startup.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/startup.c b/common/startup.c index 01718146ff69..0d62f16f32f6 100644 --- a/common/startup.c +++ b/common/startup.c @@ -50,6 +50,12 @@ static int mount_root(void) mount("none", "ramfs", "/", NULL); mkdir("/dev", 0); mount("none", "devfs", "/dev", NULL); + + if (IS_ENABLED(CONFIG_FS_EFIVARFS)) { + mkdir("/efivars", 0); + mount("none", "efivarfs", "/efivars", NULL); + } + return 0; } fs_initcall(mount_root); -- 2.1.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox