Refine Red Bear profile configs
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -103,6 +103,6 @@ requires_weak = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[service]
|
[service]
|
||||||
cmd = "/usr/lib/drivers/iommu"
|
cmd = "/usr/bin/iommu"
|
||||||
type = "oneshot_async"
|
type = "oneshot_async"
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -2,6 +2,12 @@
|
|||||||
#
|
#
|
||||||
# Shared by profiles that ship the firmware/input compatibility stack.
|
# Shared by profiles that ship the firmware/input compatibility stack.
|
||||||
|
|
||||||
|
[[files]]
|
||||||
|
path = "/usr/firmware"
|
||||||
|
data = ""
|
||||||
|
directory = true
|
||||||
|
mode = 0o755
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/05_firmware-loader.service"
|
path = "/usr/lib/init.d/05_firmware-loader.service"
|
||||||
data = """
|
data = """
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# Red Bear OS Wayland Validation Profile
|
||||||
|
#
|
||||||
|
# Build: ./local/scripts/build-redbear.sh redbear-wayland
|
||||||
|
# Run: ./local/scripts/test-phase4-wayland-qemu.sh
|
||||||
|
|
||||||
|
include = ["wayland.toml"]
|
||||||
+63
-36
@@ -1,6 +1,6 @@
|
|||||||
# Wayland configuration
|
# Wayland configuration
|
||||||
|
|
||||||
include = ["desktop.toml"]
|
include = ["desktop.toml", "redbear-legacy-base.toml", "redbear-legacy-desktop.toml", "redbear-device-services.toml", "redbear-netctl.toml"]
|
||||||
|
|
||||||
# Override the default settings here
|
# Override the default settings here
|
||||||
|
|
||||||
@@ -11,48 +11,79 @@ filesystem_size = 2048
|
|||||||
|
|
||||||
# Package settings
|
# Package settings
|
||||||
[packages]
|
[packages]
|
||||||
adwaita-icon-theme = {}
|
redbear-release = {}
|
||||||
bash = {}
|
redbear-hwutils = {}
|
||||||
cosmic-app-library = {}
|
redbear-info = {}
|
||||||
cosmic-comp = {}
|
redbear-netctl = {}
|
||||||
gtk3 = {}
|
firmware-loader = {}
|
||||||
libcosmic-wayland = {}
|
evdevd = {}
|
||||||
libxcursor = {}
|
udev-shim = {}
|
||||||
iced-wayland = {}
|
|
||||||
mesa = {}
|
mesa = {}
|
||||||
"pop-icon-theme.cursors" = {}
|
"pop-icon-theme.cursors" = {}
|
||||||
smallvil = {}
|
smallvil = {}
|
||||||
softbuffer-wayland = {}
|
|
||||||
wayland-rs = {}
|
|
||||||
#webkitgtk3 = {}
|
|
||||||
winit-wayland = {}
|
|
||||||
xkeyboard-config = {}
|
xkeyboard-config = {}
|
||||||
|
|
||||||
# Overridden to launch wayland compositor instead of orblogin
|
# Replace the legacy desktop-minimal init script with an explicit service unit.
|
||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/20_orbital"
|
path = "/usr/lib/init.d/20_orbital.service"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 10_net
|
[unit]
|
||||||
notify audiod
|
description = "Orbital display server (Wayland session)"
|
||||||
nowait BROWSER=/bin/netsurf-fb VT=3 orbital orbital-wayland
|
requires_weak = [
|
||||||
|
"10_net.target",
|
||||||
|
]
|
||||||
|
|
||||||
|
[service]
|
||||||
|
cmd = "orbital"
|
||||||
|
args = ["orbital-wayland"]
|
||||||
|
envs = { BROWSER = "/bin/netsurf-fb", VT = "3" }
|
||||||
|
type = "oneshot_async"
|
||||||
|
"""
|
||||||
|
|
||||||
|
[[files]]
|
||||||
|
path = "/usr/lib/init.d/30_console.service"
|
||||||
|
data = """
|
||||||
|
[unit]
|
||||||
|
description = "Console terminals"
|
||||||
|
requires_weak = [
|
||||||
|
"20_orbital.service",
|
||||||
|
]
|
||||||
|
|
||||||
|
[service]
|
||||||
|
cmd = "getty"
|
||||||
|
args = ["2"]
|
||||||
|
type = "oneshot_async"
|
||||||
|
"""
|
||||||
|
|
||||||
|
[[files]]
|
||||||
|
path = "/usr/lib/init.d/31_debug_console.service"
|
||||||
|
data = """
|
||||||
|
[unit]
|
||||||
|
description = "Debug console"
|
||||||
|
requires_weak = [
|
||||||
|
"20_orbital.service",
|
||||||
|
]
|
||||||
|
|
||||||
|
[service]
|
||||||
|
cmd = "getty"
|
||||||
|
args = ["/scheme/debug/no-preserve", "-J"]
|
||||||
|
type = "oneshot_async"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/bin/orbital-wayland"
|
path = "/usr/bin/orbital-wayland"
|
||||||
mode = 0o755
|
mode = 0o755
|
||||||
data = """
|
data = """
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env ion
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
# Prepare environment
|
# Prepare environment
|
||||||
unset DISPLAY
|
export DISPLAY=""
|
||||||
export COSMIC_BACKEND=winit
|
export COSMIC_BACKEND=winit
|
||||||
export HOME=/root
|
export HOME=/root
|
||||||
export LD_DEBUG=all
|
|
||||||
export RUST_BACKTRACE=full
|
export RUST_BACKTRACE=full
|
||||||
export RUST_LOG=debug
|
export RUST_LOG=debug
|
||||||
export XCURSOR_THEME=Pop
|
export XCURSOR_THEME=Pop
|
||||||
|
export XKB_CONFIG_ROOT=/usr/share/X11/xkb
|
||||||
export XDG_RUNTIME_DIR=/tmp/run/user/0
|
export XDG_RUNTIME_DIR=/tmp/run/user/0
|
||||||
|
|
||||||
# Create XDG runtime directory
|
# Create XDG runtime directory
|
||||||
@@ -61,35 +92,31 @@ mkdir -p /tmp/run
|
|||||||
mkdir -p /tmp/run/user
|
mkdir -p /tmp/run/user
|
||||||
mkdir -p /tmp/run/user/0
|
mkdir -p /tmp/run/user/0
|
||||||
|
|
||||||
# Compile glib schemas
|
# Compile glib schemas when available
|
||||||
glib-compile-schemas /usr/share/glib-2.0/schemas/
|
if test -d /usr/share/glib-2.0/schemas
|
||||||
|
glib-compile-schemas /usr/share/glib-2.0/schemas/
|
||||||
|
end
|
||||||
|
|
||||||
# For cosmic-comp (more features)
|
# Default to the smaller Smithay path first.
|
||||||
cosmic-comp wayland-session
|
smallvil -c wayland-session
|
||||||
|
|
||||||
# For smallvil (easier to debug)
|
|
||||||
#smallvil -c wayland-session&
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/bin/wayland-session"
|
path = "/usr/bin/wayland-session"
|
||||||
mode = 0o755
|
mode = 0o755
|
||||||
data = """
|
data = """
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env ion
|
||||||
|
|
||||||
set -ex
|
# env G_MAIN_POLL_DEBUG=1 G_MESSAGES_DEBUG=all LD_DEBUG=all WEBKIT_DEBUG=all MiniBrowser&
|
||||||
|
|
||||||
#env G_MAIN_POLL_DEBUG=1 G_MESSAGES_DEBUG=all LD_DEBUG=all WEBKIT_DEBUG=all MiniBrowser&
|
|
||||||
printenv
|
printenv
|
||||||
#wayland-rs_simple_window
|
#wayland-rs_simple_window
|
||||||
#winit-wayland_window
|
#winit-wayland_window
|
||||||
#softbuffer-wayland_animation
|
#softbuffer-wayland_animation
|
||||||
#iced-wayland_sctk_lazy
|
#iced-wayland_sctk_lazy
|
||||||
libcosmic-wayland_application
|
|
||||||
#gtk3-widget-factory
|
#gtk3-widget-factory
|
||||||
#cosmic-app-library run
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
path = "/etc/gtk-3.0/settings.ini"
|
path = "/etc/gtk-3.0/settings.ini"
|
||||||
data = """
|
data = """
|
||||||
|
|||||||
Reference in New Issue
Block a user