config: add redbear-bare target

Strips to bare minimum: kernel boots, base-initfs 90_initfs.target
brings up init daemons (logd, randd, zerod, ptyd, inputd), console
getty 2 hands off to zsh as default shell. No networking, no
display/audio, no driver-manager, no extra services.

filesystem_size=96 MiB. Includes only minimal.toml. Overrides
base.toml's /etc/net/* and /etc/pkg.d/50_redox (empty) and
/etc/login_schemes.toml (display/audio removed).

Build: make live CONFIG_NAME=redbear-bare

(NO AI attribution)
This commit is contained in:
2026-07-14 23:09:01 +09:00
parent ff1aa97ca7
commit 1256a43a5b
+102
View File
@@ -0,0 +1,102 @@
# Red Bear OS Bare Configuration
#
# Target contract:
# - Boots kernel
# - Starts init daemons via base-initfs 90_initfs.target
# (logd, randd, zerod, ptyd, inputd — provided by base recipe)
# - Console getty → zsh login prompt (from minimal.toml's 30_console.service)
# - No networking, no driver-manager, no display, no audio, no extra daemons
# - Stripped to bare minimum
#
# Build: make live CONFIG_NAME=redbear-bare
include = ["minimal.toml"]
[general]
filesystem_size = 96
# Override base.toml's network config — no DNS, no IP, no router
[[files]]
path = "/etc/net/dns"
data = ""
[[files]]
path = "/etc/net/ip"
data = ""
[[files]]
path = "/etc/net/ip_router"
data = ""
[[files]]
path = "/etc/net/ip_subnet"
data = ""
# Override base.toml's package manager config — no remote repo
[[files]]
path = "/etc/pkg.d/50_redox"
data = ""
# Override base.toml's login_schemes — no display/audio schemes in bare
[[files]]
path = "/etc/login_schemes.toml"
data = """
[user_schemes.root]
schemes = [
"debug",
"event",
"memory",
"pipe",
"serio",
"irq",
"time",
"sys",
"rand",
"null",
"zero",
"log",
"shm",
"chan",
"uds_stream",
"uds_dgram",
"file",
"pty",
"sudo",
]
[user_schemes.user]
schemes = [
"debug",
"event",
"memory",
"pipe",
"serio",
"irq",
"time",
"sys",
"rand",
"null",
"zero",
"log",
"shm",
"chan",
"uds_stream",
"uds_dgram",
"file",
"pty",
"sudo",
]
"""
[users.root]
password = "password"
uid = 0
gid = 0
shell = "/usr/bin/zsh"
[users.user]
password = ""
shell = "/usr/bin/zsh"
[groups.sudo]
gid = 1
members = ["user"]