commit:     d6f20a9bb3a8dc2addade267a8433ee2d55c5cbd
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 14 23:21:06 2015 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Oct 14 23:21:54 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6f20a9b

sys-apps/openrc: sync live ebuild

 sys-apps/openrc/openrc-9999.ebuild | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sys-apps/openrc/openrc-9999.ebuild 
b/sys-apps/openrc/openrc-9999.ebuild
index f1c78ac..4575415 100644
--- a/sys-apps/openrc/openrc-9999.ebuild
+++ b/sys-apps/openrc/openrc-9999.ebuild
@@ -238,6 +238,17 @@ EOF
                fi
        fi
        has_version ">=sys-apps/openrc-0.14" || add_boot_init binfmt
+
+       if ! has_version ">=sys-apps/openrc-0.18.3"; then
+               add_boot_init mtab
+               if [[ -f "${EROOT}"etc/mtab ]] && [[ ! -L "${EROOT}"etc/mtab 
]]; then
+                       ewarn "${EROOT}etc/mtab will be replaced with a"
+                       ewarn "symbolic link to /proc/self/mounts on the next"
+                       ewarn "reboot."
+                       ewarn "Change the setting in ${EROOT}etc/conf.d/mtab"
+                       ewarn "if you do not want this to happen."
+               fi
+       fi
 }
 
 # >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.

Reply via email to