sys-apps/openrc: sync live ebuild
authorWilliam Hubbs <williamh@gentoo.org>
Wed, 14 Oct 2015 23:21:06 +0000 (18:21 -0500)
committerWilliam Hubbs <williamh@gentoo.org>
Wed, 14 Oct 2015 23:21:54 +0000 (18:21 -0500)
sys-apps/openrc/openrc-9999.ebuild

index f1c78ac2cb426821b6f6fc6da05a548892fcc5ec..4575415445aefc79b5b8c3123cb613938416199b 100644 (file)
@@ -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.