f9a2f28165
The initfs already starts inputd (in phase 1) and registers the
'scheme input/evdev'. The rootfs 29_activate_console.service was
calling 'inputd -A 2' from minimal.toml, which the v6.0 inputd
binary does not accept (no -A flag; v6.0 inputd is a pure scheme
daemon that registers the single-producer evdev ring buffer).
Override the rootfs service with a no-op ('true') that satisfies
the unit dependency chain without re-spawning inputd. The actual
input pipeline (drivers writing Linux evdev, evdevd reading from
the scheme, libinput/KWin consuming /dev/input/eventN) works
without this redundant rootfs invocation.
69 lines
1.8 KiB
TOML
69 lines
1.8 KiB
TOML
# Red Bear OS overrides for base init services.
|
|
#
|
|
# 00_base.service: stripped base setup (tmpdir only, no sudo — sudo runs from
|
|
# base.toml's 00_sudo.service). ipcd and ptyd are started by
|
|
# 00_ipcd.service and 00_ptyd.service from the base recipe.
|
|
# 00_pcid-spawner.service has been fully replaced by 00_driver-manager.service
|
|
# (defined in redbear-device-services.toml). The old pcid-spawner
|
|
# unit name is no longer used anywhere.
|
|
|
|
[packages]
|
|
zsh = {}
|
|
|
|
[[files]]
|
|
path = "/etc/init.d/00_base.service"
|
|
data = """
|
|
[unit]
|
|
description = "Base environment setup (tmpdir)"
|
|
|
|
[service]
|
|
cmd = "zsh"
|
|
args = ["-c", "rm -rf /tmp; mkdir -m a=rwxt /tmp"]
|
|
type = "oneshot"
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/init.d/20_audiod.service"
|
|
data = """
|
|
[unit]
|
|
description = "Audio multiplexer"
|
|
default_dependencies = false
|
|
|
|
[service]
|
|
cmd = "audiod"
|
|
type = "oneshot_async"
|
|
"""
|
|
|
|
# Override base.toml's /var/log and /var/run from 0o755 to 0o1777 so
|
|
# log/run daemons running under non-root users (messagebus, etc.) can
|
|
# write to them. Sticky bit is standard for /var/log and /var/run.
|
|
[[files]]
|
|
path = "/var/log"
|
|
data = ""
|
|
directory = true
|
|
mode = 0o1777
|
|
|
|
[[files]]
|
|
path = "/var/run"
|
|
data = ""
|
|
directory = true
|
|
mode = 0o1777
|
|
|
|
# Override minimal.toml's 29_activate_console.service to drop the
|
|
# legacy `inputd -A 2` invocation. v6.0 inputd has no -A flag (it
|
|
# implements the single-producer evdev ring buffer). initfs already
|
|
# starts inputd in phase 1 (init.initfs.d/10_inputd.service) and
|
|
# registers /scheme/input/evdev; the rootfs second invocation would
|
|
# just fail with "unrecognized argument".
|
|
[[files]]
|
|
path = "/etc/init.d/29_activate_console.service"
|
|
data = """
|
|
[unit]
|
|
description = "Activate console VT (v6.0: inputd runs from initfs)"
|
|
default_dependencies = false
|
|
requires_weak = ["00_base.target"]
|
|
|
|
[service]
|
|
cmd = "true"
|
|
type = "oneshot"
|
|
""" |