Bug 42789

Summary: [PATCH] временная ссылка /run/initctl -> /dev/initctl
Product: Sisyphus Reporter: Michael Shigorin <mike>
Component: sysvinitAssignee: Alexey Gladkov <legion>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: ldv, legion, sem
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
spec: help migrate /dev/initctl none

Description Michael Shigorin 2022-05-18 16:23:02 MSK
Created attachment 10768 [details]
spec: help migrate /dev/initctl

Предлагаю простенький патч во избежание ситуации при обновлении sysvinit с 2.88 до 3.00, когда новый бинарник уже идёт к /run/initctl, а есть только /dev/initctl -- полагаю, что достаточно добавить в %post:

# 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
Comment 1 Alexey Gladkov 2022-05-19 16:29:09 MSK
Для совместимости стоит.
Comment 2 Repository Robot 2022-05-19 19:13:58 MSK
sysvinit-3.00-alt2 -> sisyphus:

 Thu May 19 2022 Alexey Gladkov <legion@altlinux.ru> 3.00-alt2
 - Create /run/initctl as a symlink to /dev/initctl to help with migration
   without reboot (ALT#42789).