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 DC9391381F3 for ; Mon, 24 Jun 2013 19:32:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2AE4E09BF; Mon, 24 Jun 2013 19:32:45 +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 45D42E09BF for ; Mon, 24 Jun 2013 19:32:45 +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 F31BA33BE40 for ; Mon, 24 Jun 2013 19:32:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 8BAEDE468F for ; Mon, 24 Jun 2013 19:32:42 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1372102318.29f0f55c0e7debef879674ed288c1d3af0f84772.robbat2@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: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 29f0f55c0e7debef879674ed288c1d3af0f84772 X-VCS-Branch: master Date: Mon, 24 Jun 2013 19:32:42 +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: 887106de-0da7-4c8d-990a-c9254c696f37 X-Archives-Hash: e7c1df4c53b2cc7cd145db3512cad554 commit: 29f0f55c0e7debef879674ed288c1d3af0f84772 Author: Robin H. Johnson gentoo org> AuthorDate: Mon Jun 24 19:31:58 2013 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Jun 24 19:31:58 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=29f0f55c 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() 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 5B01B1381F3 for ; Mon, 24 Jun 2013 21:31:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB9B1E09FA; Mon, 24 Jun 2013 21:31:25 +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 64CD1E09FA for ; Mon, 24 Jun 2013 21:31:25 +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 772D833E5B1 for ; Mon, 24 Jun 2013 21:31:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 12D9FE468F for ; Mon, 24 Jun 2013 21:31:23 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1372102318.29f0f55c0e7debef879674ed288c1d3af0f84772.robbat2@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: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 29f0f55c0e7debef879674ed288c1d3af0f84772 X-VCS-Branch: master Date: Mon, 24 Jun 2013 21:31:23 +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: 35bca1e3-79e9-476d-9602-e15583ba657c X-Archives-Hash: 6ae416a10ece6eefbefd101ab83fafd1 Message-ID: <20130624213123.ve1b06j5NZkzokV_g93i0cxpbllmRwpszMuW0bwtiVc@z> commit: 29f0f55c0e7debef879674ed288c1d3af0f84772 Author: Robin H. Johnson gentoo org> AuthorDate: Mon Jun 24 19:31:58 2013 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Jun 24 19:31:58 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=29f0f55c 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()