commit: ea6d8e135b8ed985d40bad74d33a9368686465a6
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 10 11:18:06 2020 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Nov 10 11:18:45 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea6d8e13
sys-apps/sysvinit: Fixed ${ROOT} check for EAPI-7
Closes: https://bugs.gentoo.org/753824
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
sys-apps/sysvinit/sysvinit-2.96.ebuild | 2 +-
sys-apps/sysvinit/sysvinit-2.97.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys-apps/sysvinit/sysvinit-2.96.ebuild
b/sys-apps/sysvinit/sysvinit-2.96.ebuild
index adf3f15ec1e..b82c9e06198 100644
--- a/sys-apps/sysvinit/sysvinit-2.96.ebuild
+++ b/sys-apps/sysvinit/sysvinit-2.96.ebuild
@@ -121,7 +121,7 @@ pkg_postinst() {
# Reload init to fix unmounting problems of / on next reboot.
# This is really needed, as without the new version of init cause init
# not to quit properly on reboot, and causes a fsck of / on next reboot.
- if [[ ${ROOT} == / ]] ; then
+ if [[ -z ${ROOT} ]] ; then
if [[ -e /dev/initctl && ! -e /run/initctl ]]; then
ln -s /dev/initctl /run/initctl
fi
diff --git a/sys-apps/sysvinit/sysvinit-2.97.ebuild
b/sys-apps/sysvinit/sysvinit-2.97.ebuild
index 4dd4d992de9..218791b88a2 100644
--- a/sys-apps/sysvinit/sysvinit-2.97.ebuild
+++ b/sys-apps/sysvinit/sysvinit-2.97.ebuild
@@ -125,7 +125,7 @@ pkg_postinst() {
# Reload init to fix unmounting problems of / on next reboot.
# This is really needed, as without the new version of init cause init
# not to quit properly on reboot, and causes a fsck of / on next reboot.
- if [[ ${ROOT} == / ]] ; then
+ if [[ -z ${ROOT} ]] ; then
if [[ -e /dev/initctl ]] && [[ ! -e /run/initctl ]] ; then
ln -s /dev/initctl /run/initctl \
|| ewarn "Failed to set /run/initctl symlink!"