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 2AB0258973 for ; Tue, 9 Feb 2016 21:43:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B38BF21C095; Tue, 9 Feb 2016 21:43:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2954D21C095 for ; Tue, 9 Feb 2016 21:43:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5567C340A8E for ; Tue, 9 Feb 2016 21:42:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 27B1F8F6 for ; Tue, 9 Feb 2016 21:42:58 +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: <1455053983.2c1f6a16e10a45397e0872585dcb0e16684b6cbf.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: 2c1f6a16e10a45397e0872585dcb0e16684b6cbf X-VCS-Branch: master Date: Tue, 9 Feb 2016 21:42:58 +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: ef05cc8f-eefe-4a3a-b71f-44fe361f68fc X-Archives-Hash: e6dd247faf5000820f9df9e6227dddbd commit: 2c1f6a16e10a45397e0872585dcb0e16684b6cbf Author: Mike Frysinger gentoo org> AuthorDate: Sat Feb 6 01:00:41 2016 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Feb 9 21:39:43 2016 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=2c1f6a16 sysfs: mount pstore when available init.d/sysfs.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init.d/sysfs.in b/init.d/sysfs.in index 4f214f6..cc4007f 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -88,6 +88,15 @@ mount_misc() fi fi + # Setup Kernel Support for persistent storage + if [ -d /sys/fs/pstore ] && ! mountinfo -q /sys/fs/pstore; then + if grep -qs 'pstore$' /proc/filesystems; then + ebegin "Mounting persistent storage (pstore) filesystem" + mount -t pstore pstore -o ${sysfs_opts} /sys/fs/pstore + 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