[packages/SysVinit] - rel 2; init uses /run/initctl now, so migrate to it
arekm
arekm at pld-linux.org
Thu Feb 28 12:16:11 CET 2019
commit dd1e76d5b6216b9b2326b670e00b57ee01901977
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Feb 28 12:15:56 2019 +0100
- rel 2; init uses /run/initctl now, so migrate to it
SysVinit.spec | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/SysVinit.spec b/SysVinit.spec
index 7209898..8376d0f 100644
--- a/SysVinit.spec
+++ b/SysVinit.spec
@@ -13,7 +13,7 @@ Summary(tr.UTF-8): System V başlatma programı
Summary(uk.UTF-8): Програми, що керують базовими системними процесами
Name: SysVinit
Version: 2.94
-Release: 1
+Release: 2
License: GPL v2+
Group: Base
Source0: http://download.savannah.gnu.org/releases/sysvinit/sysvinit-%{version}.tar.xz
@@ -213,12 +213,16 @@ chmod 600 %{_sysconfdir}/ioctl.save
chmod 640 /var/log/btmp
chmod 640 /var/log/faillog
chmod 664 /var/log/lastlog
-if [ -p /dev/initctl ]; then
+if [ -p /run/initctl ]; then
%{_sbindir}/telinit u || :
fi
+%triggerun -- SysVinit < 2.94-1
+# it will be needed once until reboot happens
+[ -p /dev/initctl -a ! -e /run/initctl ] && ln -s /dev/initctl /run/initctl
+
%triggerpostun -- glibc
-if [ -p /dev/initctl ]; then
+if [ -p /run/initctl ]; then
%{_sbindir}/telinit u || :
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/SysVinit.git/commitdiff/dd1e76d5b6216b9b2326b670e00b57ee01901977
More information about the pld-cvs-commit
mailing list