Subject: bug#456: openrc: dbus fails to start with /sbin/openrc-init

From: Ryutaroh Matsumoto <[email-masked]>
Date: Sun, 10 May 2020 20:59:20 +0900 (JST)

Package: openrc
Version: 0.40.3-1
Severity: normal

Dear Maintainer,

With kernel command line init=/sbin/openrc-init,
dbus in Debuan Beowulf fails to start,
and elogin also fails to start.
I do not observe this in Debian Bullseye
(I don't have Debian Buster).

Best regards, Ryutaroh Matsumoto

-- System Information:
Distributor ID:	Debian
Description:	Devuan GNU/Linux 3 (beowulf)
Release:	3
Codename:	beowulf
Architecture: x86_64

Kernel: Linux 4.19.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: openrc-init (via /sbin/openrc-init)
LSM: AppArmor: enabled

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.40.3-1
ii  libpam0g             1.3.1-5
ii  librc1               0.40.3-1
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

-- no debconf information

---

From: Ryutaroh Matsumoto <[email-masked]>
Date: Mon, 11 May 2020 07:33:13 +0900 (JST)

Control: retitle -1 init.d/dbus.sh is run before checkroot.sh with /sbin/openrc-init
Control: tags -1 + debian
Control: forwarded -1 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960234

With further investigation, I noticed error messages
chgrp:changing group of '/var/log/dmesg': Read-only file system
rsyslogd: file '/var/log/syslog': open error: Read-only file system
Could not create /var/lib/dbus/machine-id.2lLD5ybW: Read-only file system

and giving "rw" to the kernel boot option surpresses this symptom.
My understanding is that /etc/init.d/dbus.sh is run before
/etc/init.d/checkroot.sh.

I do not see how such wrong order of executios occur.
I reproduced this symptom on Debian Bullseye and reported to their BTS.

Best regards, Ryutaroh