Package: openrc Version: 0.42.1-2 Severity: normal Tags: newcomer Dear Maintainer,
I have been trying to replace SysV init with openrc-init, but there are bugs, with fixes. I now have openrc-init running with the newer version 0.42.1 plus a patch. The current version of OpenRC 0.40.1-1 seemes to work nicely when started via SysV init. However, trying to use openrc-init instead of SysV init exposes a bug where it does not wait for the runlevel to complete before moving on to the next one. This was reported in https://github.com/OpenRC/openrc/pull/300 and fixed in https://github.com/OpenRC/openrc/commit/0d378974bfbd69c5427d44c0a43a9f36389aa235#diff-27beb9a9e904a8b574968665898b2411 I believe that this is incorporated in OpenRC version 0.41.2 The ability for openrc-shutdown to also communicate with SysV init, was added in https://github.com/OpenRC/openrc/pull/315 This makes the transition between SysV init and openrc-init simpler. I believe that it is incorporated in OpenRC version 0.42.1 The Debian port reported a bug where filesystems were not being unmounted during reboot/shutdown :- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736384 The fix was to add in the runlevel "off" in /etc/init.d/rc and this works nicely. If one moves to using openrc-init to replace SysV init, then this needs to be adde d to openrc-init. The following patch seems to work nicely for me :- cat 0010-init-runlevel-off.patch Add in the runlevel "off" before "shutdown" in openrc-init.c --- a/src/rc/openrc-init.c +++ b/src/rc/openrc-init.c @@ -108,6 +108,7 @@ static void handle_shutdown(const char * { struct timespec ts; + do_openrc("off"); do_openrc(runlevel); printf("Sending the final term signal\n"); kill(-1, SIGTERM); -- System Information: Debian Release: 10.0 Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-8-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages openrc depends on: ii init-system-helpers 1.56+devuan1 ii insserv 1.18.0-2 ii libaudit1 1:2.8.4-3 ii libc6 2.28-10 ii libeinfo1 0.42.1-2 ii libpam0g 1.3.1-5 ii librc1 0.42.1-2 ii libselinux1 2.8-1+b1 openrc recommends no packages. Versions of packages openrc suggests: pn policycoreutils <none> ii sysvinit-core 2.93-8+devuan1 -- Configuration Files: /etc/rc.conf changed [not included] -- no debconf information