ALT Linux Bugzilla
– Attachment 10768 Details for
Bug 42789
[PATCH] временная ссылка /run/initctl -> /dev/initctl
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
spec: help migrate /dev/initctl
0001-spec-help-migrate-dev-initctl.patch (text/plain), 917 bytes, created by
Michael Shigorin
on 2022-05-18 16:23:02 MSK
(
hide
)
Description:
spec: help migrate /dev/initctl
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2022-05-18 16:23:02 MSK
Size:
917 bytes
patch
obsolete
>From d32fef07c90ac8f9d2ddcca519d25bffcd3cdf9e Mon Sep 17 00:00:00 2001 >From: Michael Shigorin <mike@altlinux.org> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42789
: 10768