config: drop unsupported 'before' field from 12_dbus.service

The local init fork's Service struct does not have a 'before' field
(it supports cmd, args, envs, inherit_envs, type only), and the
deny_unknown_fields attribute makes init panic at boot when it parses
'before':

  init: /etc/init.d/12_dbus.service: unknown field 'before', expected
  one of 'cmd', 'args', 'envs', 'inherit_envs', 'type' in 'service'

The 'before = [13_redbear-sessiond.service]' line was redundant
anyway: 13_redbear-sessiond.service already declares
requires_weak = ['12_dbus.service'], which orders it after dbus.

Fix both redbear-mini.toml and redbear-full.toml.
This commit is contained in:
2026-06-28 16:20:32 +03:00
parent 3c6f2bf301
commit 1eb4df5bfd
2 changed files with 0 additions and 2 deletions
-1
View File
@@ -227,7 +227,6 @@ requires_weak = [
cmd = "/usr/bin/dbus-daemon"
args = ["--system", "--nopidfile", "--address=unix:path=/run/dbus/system_bus_socket"]
type = "oneshot_async"
before = ["13_redbear-sessiond.service"]
"""
[[files]]
-1
View File
@@ -359,7 +359,6 @@ cmd = "dbus-daemon"
args = ["--system", "--nopidfile", "--address=unix:path=/run/dbus/system_bus_socket"]
envs = { DBUS_SYSTEM_BUS_ADDRESS = "unix:path=/run/dbus/system_bus_socket" }
type = "oneshot_async"
before = ["13_redbear-sessiond.service"]
"""
[[files]]