From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 92F411381F3 for ; Mon, 24 Jun 2013 20:46:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 189BDE09C3; Mon, 24 Jun 2013 20:46:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6608AE09C0 for ; Mon, 24 Jun 2013 20:46:20 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 724D933E5B1 for ; Mon, 24 Jun 2013 20:46:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 1E48AE545E for ; Mon, 24 Jun 2013 20:46:18 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1372106576.02a7d3573d551c5d169eaa465ef90349d1ee367e.WilliamH@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/sysfs.in X-VCS-Directories: init.d/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 02a7d3573d551c5d169eaa465ef90349d1ee367e X-VCS-Branch: master Date: Mon, 24 Jun 2013 20:46:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 531d4ed0-d49f-4884-9715-1b98e730dcdf X-Archives-Hash: d2485537764a9f43dde7c1b6be53287d commit: 02a7d3573d551c5d169eaa465ef90349d1ee367e Author: Robin H. Johnson gentoo org> AuthorDate: Mon Jun 24 19:31:58 2013 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon Jun 24 20:42:56 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=02a7d357 efivarfs: Support EFI variable access in 3.10 kernels. In the 3.10 kernel, EFI variables are now provided by a dedicated filesystem that needs to be mounted. Signed-off-by: Robin H. Johnson gentoo.org> --- init.d/sysfs.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/init.d/sysfs.in b/init.d/sysfs.in index 114a653..7658cb5 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -81,6 +81,20 @@ mount_misc() eend $? fi fi + + # setup up kernel support for efivarfs + # slightly complicated, as if it's build as a module but NOT yet loaded, + # it will NOT appear in /proc/filesystems yet + if [ -d /sys/firmware/efi/efivars ] \ + && ! mountinfo -q /sys/firmware/efi/efivars; then + modprobe -q efivarfs + if grep -qs efivarfs /proc/filesystems; then + ebegin "Mounting efivarfs filesystem" + mount -n -t efivarfs -o ${sysfs_opts} \ + efivarfs /sys/firmware/efi/efivars + eend $? + fi + fi } mount_cgroups()