From d32fef07c90ac8f9d2ddcca519d25bffcd3cdf9e Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Wed, 18 May 2022 16:18:11 +0300 Subject: [PATCH] spec: help migrate /dev/initctl ...otherwise new /sbin/init would try to open /run/initctl which is not there yet, causing trouble to e.g. reboot the upgraded system. --- .rpm/sysvinit.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.rpm/sysvinit.spec b/.rpm/sysvinit.spec index e69aa49..d8e8d6c 100644 --- a/.rpm/sysvinit.spec +++ b/.rpm/sysvinit.spec @@ -145,6 +145,11 @@ if ! pidof /sbin/.init-working >/dev/null 2>&1; then rm -f /sbin/.init-working fi +# Transition to avoid non-rebootable system after upgrade from 2.88 +if [ -e /dev/initctl ] && [ -d /run ] && [ ! -e /run/initctl ]; then + ln -srf /dev/initctl /run/initctl +fi + %files %attr(700,root,root) /sbin/init %attr(700,root,root) /sbin/shutdown -- 2.33.2