Update build configs for D-Bus and service integration
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -47,6 +47,9 @@ mc = {}
|
|||||||
# Package builder (cub -S/-B/-G CLI)
|
# Package builder (cub -S/-B/-G CLI)
|
||||||
cub = {}
|
cub = {}
|
||||||
|
|
||||||
|
# Core Red Bear umbrella package
|
||||||
|
redbear-meta = {}
|
||||||
|
|
||||||
|
|
||||||
# ── Desktop services (replace legacy desktop-minimal init scripts) ───────────
|
# ── Desktop services (replace legacy desktop-minimal init scripts) ───────────
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ redbear-traceroute = {}
|
|||||||
redbear-mtr = {}
|
redbear-mtr = {}
|
||||||
redbear-nmap = {}
|
redbear-nmap = {}
|
||||||
|
|
||||||
|
# Package builder / recipe utility
|
||||||
|
cub = {}
|
||||||
|
|
||||||
# Terminal file manager (Midnight Commander port)
|
# Terminal file manager (Midnight Commander port)
|
||||||
mc = {}
|
mc = {}
|
||||||
|
|
||||||
@@ -55,6 +58,12 @@ udev-shim = {}
|
|||||||
|
|
||||||
# Desktop/session plumbing
|
# Desktop/session plumbing
|
||||||
dbus = {}
|
dbus = {}
|
||||||
|
redbear-sessiond = {}
|
||||||
|
redbear-dbus-services = {}
|
||||||
|
redbear-notifications = {}
|
||||||
|
redbear-upower = {}
|
||||||
|
redbear-udisks = {}
|
||||||
|
redbear-polkit = {}
|
||||||
|
|
||||||
# Diagnostic tool
|
# Diagnostic tool
|
||||||
redbear-info = {}
|
redbear-info = {}
|
||||||
@@ -74,8 +83,8 @@ libxkbcommon = {}
|
|||||||
# Qt6 base (Core+Concurrent+Xml+Gui+Widgets, software rendering)
|
# Qt6 base (Core+Concurrent+Xml+Gui+Widgets, software rendering)
|
||||||
qtbase = {}
|
qtbase = {}
|
||||||
|
|
||||||
# RBOS meta-package — temporarily disabled (depends on GPU stack via redox-driver-sys)
|
# Core Red Bear umbrella package
|
||||||
# redbear-meta = {}
|
redbear-meta = {}
|
||||||
|
|
||||||
# Firmware directory for AMD/Intel GPU blobs
|
# Firmware directory for AMD/Intel GPU blobs
|
||||||
[[files]]
|
[[files]]
|
||||||
@@ -169,6 +178,78 @@ args = [
|
|||||||
type = "oneshot_async"
|
type = "oneshot_async"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
[[files]]
|
||||||
|
path = "/usr/lib/init.d/13_redbear-sessiond.service"
|
||||||
|
data = """
|
||||||
|
[unit]
|
||||||
|
description = "Red Bear session broker (org.freedesktop.login1)"
|
||||||
|
requires_weak = [
|
||||||
|
"12_dbus.service",
|
||||||
|
]
|
||||||
|
|
||||||
|
[service]
|
||||||
|
cmd = "ion"
|
||||||
|
args = [
|
||||||
|
"-c",
|
||||||
|
"sleep 5; redbear-sessiond",
|
||||||
|
]
|
||||||
|
type = "oneshot_async"
|
||||||
|
"""
|
||||||
|
|
||||||
|
[[files]]
|
||||||
|
path = "/usr/lib/init.d/14_redbear-upower.service"
|
||||||
|
data = """
|
||||||
|
[unit]
|
||||||
|
description = "UPower D-Bus service (org.freedesktop.UPower)"
|
||||||
|
requires_weak = [
|
||||||
|
"12_dbus.service",
|
||||||
|
]
|
||||||
|
|
||||||
|
[service]
|
||||||
|
cmd = "ion"
|
||||||
|
args = [
|
||||||
|
"-c",
|
||||||
|
"sleep 5; redbear-upower",
|
||||||
|
]
|
||||||
|
type = "oneshot_async"
|
||||||
|
"""
|
||||||
|
|
||||||
|
[[files]]
|
||||||
|
path = "/usr/lib/init.d/14_redbear-udisks.service"
|
||||||
|
data = """
|
||||||
|
[unit]
|
||||||
|
description = "UDisks2 D-Bus service (org.freedesktop.UDisks2)"
|
||||||
|
requires_weak = [
|
||||||
|
"12_dbus.service",
|
||||||
|
]
|
||||||
|
|
||||||
|
[service]
|
||||||
|
cmd = "ion"
|
||||||
|
args = [
|
||||||
|
"-c",
|
||||||
|
"sleep 5; redbear-udisks",
|
||||||
|
]
|
||||||
|
type = "oneshot_async"
|
||||||
|
"""
|
||||||
|
|
||||||
|
[[files]]
|
||||||
|
path = "/usr/lib/init.d/14_redbear-polkit.service"
|
||||||
|
data = """
|
||||||
|
[unit]
|
||||||
|
description = "PolicyKit1 D-Bus service (org.freedesktop.PolicyKit1)"
|
||||||
|
requires_weak = [
|
||||||
|
"12_dbus.service",
|
||||||
|
]
|
||||||
|
|
||||||
|
[service]
|
||||||
|
cmd = "ion"
|
||||||
|
args = [
|
||||||
|
"-c",
|
||||||
|
"sleep 5; redbear-polkit",
|
||||||
|
]
|
||||||
|
type = "oneshot_async"
|
||||||
|
"""
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
path = "/var/lib/dbus"
|
path = "/var/lib/dbus"
|
||||||
data = ""
|
data = ""
|
||||||
|
|||||||
+98
-2
@@ -36,6 +36,12 @@ udev-shim = {}
|
|||||||
|
|
||||||
# D-Bus (session + system bus)
|
# D-Bus (session + system bus)
|
||||||
dbus = {}
|
dbus = {}
|
||||||
|
redbear-sessiond = {}
|
||||||
|
redbear-dbus-services = {}
|
||||||
|
redbear-notifications = {}
|
||||||
|
redbear-upower = {}
|
||||||
|
redbear-udisks = {}
|
||||||
|
redbear-polkit = {}
|
||||||
|
|
||||||
# Diagnostic/runtime tooling
|
# Diagnostic/runtime tooling
|
||||||
redbear-info = {}
|
redbear-info = {}
|
||||||
@@ -115,8 +121,11 @@ requires_weak = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[service]
|
[service]
|
||||||
cmd = "dbus-daemon"
|
cmd = "ion"
|
||||||
args = ["--system"]
|
args = [
|
||||||
|
"-c",
|
||||||
|
"mkdir -p /var/lib/dbus /run/dbus; rm -f /run/dbus/pid; dbus-uuidgen --ensure; dbus-daemon --system",
|
||||||
|
]
|
||||||
type = "oneshot_async"
|
type = "oneshot_async"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -139,6 +148,7 @@ data = """
|
|||||||
description = "seatd seat management daemon"
|
description = "seatd seat management daemon"
|
||||||
requires_weak = [
|
requires_weak = [
|
||||||
"12_dbus.service",
|
"12_dbus.service",
|
||||||
|
"13_redbear-sessiond.service",
|
||||||
]
|
]
|
||||||
|
|
||||||
[service]
|
[service]
|
||||||
@@ -147,6 +157,78 @@ args = ["-l", "info"]
|
|||||||
type = "oneshot_async"
|
type = "oneshot_async"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
[[files]]
|
||||||
|
path = "/usr/lib/init.d/13_redbear-sessiond.service"
|
||||||
|
data = """
|
||||||
|
[unit]
|
||||||
|
description = "Red Bear session broker (org.freedesktop.login1)"
|
||||||
|
requires_weak = [
|
||||||
|
"12_dbus.service",
|
||||||
|
]
|
||||||
|
|
||||||
|
[service]
|
||||||
|
cmd = "ion"
|
||||||
|
args = [
|
||||||
|
"-c",
|
||||||
|
"sleep 5; redbear-sessiond",
|
||||||
|
]
|
||||||
|
type = "oneshot_async"
|
||||||
|
"""
|
||||||
|
|
||||||
|
[[files]]
|
||||||
|
path = "/usr/lib/init.d/14_redbear-upower.service"
|
||||||
|
data = """
|
||||||
|
[unit]
|
||||||
|
description = "UPower D-Bus service (org.freedesktop.UPower)"
|
||||||
|
requires_weak = [
|
||||||
|
"12_dbus.service",
|
||||||
|
]
|
||||||
|
|
||||||
|
[service]
|
||||||
|
cmd = "ion"
|
||||||
|
args = [
|
||||||
|
"-c",
|
||||||
|
"sleep 5; redbear-upower",
|
||||||
|
]
|
||||||
|
type = "oneshot_async"
|
||||||
|
"""
|
||||||
|
|
||||||
|
[[files]]
|
||||||
|
path = "/usr/lib/init.d/14_redbear-udisks.service"
|
||||||
|
data = """
|
||||||
|
[unit]
|
||||||
|
description = "UDisks2 D-Bus service (org.freedesktop.UDisks2)"
|
||||||
|
requires_weak = [
|
||||||
|
"12_dbus.service",
|
||||||
|
]
|
||||||
|
|
||||||
|
[service]
|
||||||
|
cmd = "ion"
|
||||||
|
args = [
|
||||||
|
"-c",
|
||||||
|
"sleep 5; redbear-udisks",
|
||||||
|
]
|
||||||
|
type = "oneshot_async"
|
||||||
|
"""
|
||||||
|
|
||||||
|
[[files]]
|
||||||
|
path = "/usr/lib/init.d/14_redbear-polkit.service"
|
||||||
|
data = """
|
||||||
|
[unit]
|
||||||
|
description = "PolicyKit1 D-Bus service (org.freedesktop.PolicyKit1)"
|
||||||
|
requires_weak = [
|
||||||
|
"12_dbus.service",
|
||||||
|
]
|
||||||
|
|
||||||
|
[service]
|
||||||
|
cmd = "ion"
|
||||||
|
args = [
|
||||||
|
"-c",
|
||||||
|
"sleep 5; redbear-polkit",
|
||||||
|
]
|
||||||
|
type = "oneshot_async"
|
||||||
|
"""
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/20_orbital.service"
|
path = "/usr/lib/init.d/20_orbital.service"
|
||||||
data = """
|
data = """
|
||||||
@@ -155,6 +237,7 @@ description = "Orbital display server (KDE session)"
|
|||||||
requires_weak = [
|
requires_weak = [
|
||||||
"10_net.target",
|
"10_net.target",
|
||||||
"12_dbus.service",
|
"12_dbus.service",
|
||||||
|
"13_redbear-sessiond.service",
|
||||||
"13_seatd.service",
|
"13_seatd.service",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -221,6 +304,8 @@ export DISPLAY=""
|
|||||||
export WAYLAND_DISPLAY=wayland-0
|
export WAYLAND_DISPLAY=wayland-0
|
||||||
export XDG_RUNTIME_DIR=/tmp/run/user/0
|
export XDG_RUNTIME_DIR=/tmp/run/user/0
|
||||||
export XDG_SESSION_TYPE=wayland
|
export XDG_SESSION_TYPE=wayland
|
||||||
|
export XDG_SESSION_ID=c1
|
||||||
|
export XDG_SEAT=seat0
|
||||||
export KDE_FULL_SESSION=true
|
export KDE_FULL_SESSION=true
|
||||||
export XDG_CURRENT_DESKTOP=KDE
|
export XDG_CURRENT_DESKTOP=KDE
|
||||||
export HOME=/root
|
export HOME=/root
|
||||||
@@ -240,6 +325,17 @@ fi
|
|||||||
# Start D-Bus session bus
|
# Start D-Bus session bus
|
||||||
eval $(dbus-launch --sh-syntax)
|
eval $(dbus-launch --sh-syntax)
|
||||||
|
|
||||||
|
# Export session environment to D-Bus activation
|
||||||
|
dbus-update-activation-environment \
|
||||||
|
WAYLAND_DISPLAY \
|
||||||
|
XDG_SESSION_ID \
|
||||||
|
XDG_SEAT \
|
||||||
|
XDG_SESSION_TYPE \
|
||||||
|
XDG_RUNTIME_DIR \
|
||||||
|
XDG_CURRENT_DESKTOP \
|
||||||
|
KDE_FULL_SESSION \
|
||||||
|
DISPLAY
|
||||||
|
|
||||||
# Start KWin Wayland compositor
|
# Start KWin Wayland compositor
|
||||||
kwin_wayland --replace
|
kwin_wayland --replace
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -8,3 +8,8 @@ include = ["redbear-desktop.toml"]
|
|||||||
[general]
|
[general]
|
||||||
# Larger filesystem for live image with more tools
|
# Larger filesystem for live image with more tools
|
||||||
filesystem_size = 12288
|
filesystem_size = 12288
|
||||||
|
|
||||||
|
[packages]
|
||||||
|
# Keep these explicit for the live profile even though cub is inherited via redbear-desktop.
|
||||||
|
cub = {}
|
||||||
|
redbear-meta = {}
|
||||||
|
|||||||
@@ -6,7 +6,9 @@
|
|||||||
include = ["minimal.toml", "redbear-legacy-base.toml", "redbear-device-services.toml", "redbear-netctl.toml"]
|
include = ["minimal.toml", "redbear-legacy-base.toml", "redbear-device-services.toml", "redbear-netctl.toml"]
|
||||||
|
|
||||||
[general]
|
[general]
|
||||||
filesystem_size = 512
|
# Minimal image now includes firmware payloads and Wi-Fi control-plane packages,
|
||||||
|
# so the previous 512 MiB image is too small for live ISO assembly.
|
||||||
|
filesystem_size = 2048
|
||||||
|
|
||||||
[packages]
|
[packages]
|
||||||
# Red Bear OS branding
|
# Red Bear OS branding
|
||||||
@@ -37,7 +39,6 @@ udev-shim = {}
|
|||||||
# Terminal file manager
|
# Terminal file manager
|
||||||
mc = {}
|
mc = {}
|
||||||
|
|
||||||
|
|
||||||
# Diagnostic tool
|
# Diagnostic tool
|
||||||
redbear-info = {}
|
redbear-info = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user