redox/config/redoxer.toml
bjorn3 294c0064de Change a couple of init scripts to shell scripts
The cd command in init scripts manipulates global state, support for
which we may remove in the future.
2026-02-19 20:53:26 +01:00

51 lines
719 B
TOML

# Configuration for the Redoxer image
include = ["net.toml"]
# Package settings
[packages]
bash = {}
ca-certificates = {}
coreutils = {}
extrautils = {}
findutils = {}
gnu-make = {}
ion = {}
netdb = {}
pkgutils = {}
relibc = {}
sed = {}
# Override to not background dhcpd
[[files]]
path = "/usr/lib/init.d/10_net"
data = """
notify smolnetd
dhcpd
"""
[[files]]
path = "/usr/lib/init.d/30_redoxer"
data = """
ion /usr/lib/run_redoxer.ion
"""
[[files]]
path = "/usr/lib/run_redoxer.ion"
data = """
#!/usr/bin/env ion
echo
echo ## preparing environment ##
export GROUPS=0
export HOME=/root
export HOST=redox
export SHELL=/bin/sh
export UID=0
export USER=root
cd /root
env
echo
echo ## running redoxer ##
redoxerd
"""