mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 15:34:18 +08:00
Move some init configs into the base recipe
This commit is contained in:
parent
585ebfd8cb
commit
473bee2d66
@ -16,7 +16,7 @@ ion = {}
|
|||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/10_acid"
|
path = "/usr/lib/init.d/10_acid"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 00_drivers
|
requires_weak 00_base.target
|
||||||
ion /usr/lib/run_acid.ion
|
ion /usr/lib/run_acid.ion
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ auto-test = {}
|
|||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/30_console"
|
path = "/usr/lib/init.d/30_console"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 10_net
|
requires_weak 10_net.target
|
||||||
ion /usr/lib/run_tests.ion
|
ion /usr/lib/run_tests.ion
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@ -22,34 +22,6 @@ userutils = {}
|
|||||||
uutils = {}
|
uutils = {}
|
||||||
|
|
||||||
## Configuration files
|
## Configuration files
|
||||||
[[files]]
|
|
||||||
path = "/usr/lib/init.d/00_base"
|
|
||||||
data = """
|
|
||||||
# clear and recreate tmpdir with 0o1777 permission
|
|
||||||
rm -rf /tmp
|
|
||||||
mkdir -m a=rwxt /tmp
|
|
||||||
|
|
||||||
notify ipcd
|
|
||||||
notify ptyd
|
|
||||||
nowait sudo --daemon
|
|
||||||
"""
|
|
||||||
|
|
||||||
[[files]]
|
|
||||||
path = "/usr/lib/init.d/00_drivers"
|
|
||||||
data = """
|
|
||||||
requires_weak 00_base
|
|
||||||
pcid-spawner
|
|
||||||
"""
|
|
||||||
|
|
||||||
## Network init
|
|
||||||
[[files]]
|
|
||||||
path = "/usr/lib/init.d/10_net"
|
|
||||||
data = """
|
|
||||||
requires_weak 00_drivers
|
|
||||||
notify smolnetd
|
|
||||||
nowait dhcpd
|
|
||||||
"""
|
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
path = "/etc/login_schemes.toml"
|
path = "/etc/login_schemes.toml"
|
||||||
data = """
|
data = """
|
||||||
|
|||||||
@ -17,7 +17,7 @@ orbutils = {}
|
|||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/20_orbital"
|
path = "/usr/lib/init.d/20_orbital"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 10_net
|
requires_weak 10_net.target
|
||||||
notify audiod
|
notify audiod
|
||||||
nowait VT=3 orbital orblogin launcher
|
nowait VT=3 orbital orblogin launcher
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -19,7 +19,7 @@ kibi = {}
|
|||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/30_console"
|
path = "/usr/lib/init.d/30_console"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 10_net
|
requires_weak 10_net.target
|
||||||
inputd -A 2
|
inputd -A 2
|
||||||
nowait getty 2
|
nowait getty 2
|
||||||
nowait getty /scheme/debug/no-preserve -J
|
nowait getty /scheme/debug/no-preserve -J
|
||||||
|
|||||||
@ -16,7 +16,7 @@ os-test-bins = {} # Provides source and cross-compiled binaries
|
|||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/30_console"
|
path = "/usr/lib/init.d/30_console"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 10_net
|
requires_weak 10_net.target
|
||||||
RUST_BACKTRACE=full os-test-runner
|
RUST_BACKTRACE=full os-test-runner
|
||||||
shutdown
|
shutdown
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -11,7 +11,7 @@ orbital = {}
|
|||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/30_redoxer"
|
path = "/usr/lib/init.d/30_redoxer"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 10_net
|
requires_weak 10_net.target
|
||||||
echo
|
echo
|
||||||
echo "## running redoxer in orbital ##"
|
echo "## running redoxer in orbital ##"
|
||||||
nowait VT=3 orbital redoxerd
|
nowait VT=3 orbital redoxerd
|
||||||
|
|||||||
@ -17,17 +17,23 @@ sed = {}
|
|||||||
|
|
||||||
# Override to not background dhcpd
|
# Override to not background dhcpd
|
||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/10_net"
|
path = "/usr/lib/init.d/10_dhcpd.service"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 00_drivers
|
[unit]
|
||||||
notify smolnetd
|
description = "Network configuration using DHCP"
|
||||||
dhcpd
|
requires_weak = [
|
||||||
|
"10_smolnetd.service",
|
||||||
|
]
|
||||||
|
|
||||||
|
[service]
|
||||||
|
cmd = "dhcpd"
|
||||||
|
type = "oneshot"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/30_redoxer"
|
path = "/usr/lib/init.d/30_redoxer"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 10_net
|
requires_weak 10_net.target
|
||||||
ion /usr/lib/run_redoxer.ion
|
ion /usr/lib/run_redoxer.ion
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@ -32,7 +32,7 @@ xkeyboard-config = {}
|
|||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/20_orbital"
|
path = "/usr/lib/init.d/20_orbital"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 10_net
|
requires_weak 10_net.target
|
||||||
notify audiod
|
notify audiod
|
||||||
nowait BROWSER=/bin/netsurf-fb VT=3 orbital orbital-wayland
|
nowait BROWSER=/bin/netsurf-fb VT=3 orbital orbital-wayland
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -25,7 +25,7 @@ zenity = {}
|
|||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/10_dbus"
|
path = "/usr/lib/init.d/10_dbus"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 10_net
|
requires_weak 10_net.target
|
||||||
bash /usr/bin/start-dbus.sh
|
bash /usr/bin/start-dbus.sh
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ dbus-daemon --system
|
|||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/10_xenv"
|
path = "/usr/lib/init.d/10_xenv"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 10_net
|
requires_weak 10_net.target
|
||||||
glib-compile-schemas /usr/share/glib-2.0/schemas/
|
glib-compile-schemas /usr/share/glib-2.0/schemas/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ include = ["../desktop.toml"]
|
|||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/20_orbital"
|
path = "/usr/lib/init.d/20_orbital"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 10_net
|
requires_weak 10_net.target
|
||||||
notify audiod
|
notify audiod
|
||||||
nowait VT=3 orbital contain_orblogin launcher
|
nowait VT=3 orbital contain_orblogin launcher
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -38,7 +38,7 @@ website = {}
|
|||||||
[[files]]
|
[[files]]
|
||||||
path = "/usr/lib/init.d/98_keygen_sh"
|
path = "/usr/lib/init.d/98_keygen_sh"
|
||||||
data = """
|
data = """
|
||||||
requires_weak 10_net
|
requires_weak 10_net.target
|
||||||
bash /root/keygen.sh
|
bash /root/keygen.sh
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@ -67,10 +67,13 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir -pv "${COOKBOOK_STAGE}/lib/pcid.d"
|
mkdir -pv "${COOKBOOK_STAGE}/usr/lib/init.d/"
|
||||||
|
cp "${COOKBOOK_SOURCE}/init.d"/* "${COOKBOOK_STAGE}/usr/lib/init.d/"
|
||||||
|
|
||||||
|
mkdir -pv "${COOKBOOK_STAGE}/usr/lib/pcid.d"
|
||||||
${FIND} "${COOKBOOK_SOURCE}/drivers" -maxdepth 3 -type f -name 'config.toml' | while read conf
|
${FIND} "${COOKBOOK_SOURCE}/drivers" -maxdepth 3 -type f -name 'config.toml' | while read conf
|
||||||
do
|
do
|
||||||
driver="$(basename "$(dirname "$conf")")"
|
driver="$(basename "$(dirname "$conf")")"
|
||||||
cp -v "$conf" "${COOKBOOK_STAGE}/lib/pcid.d/$driver.toml"
|
cp -v "$conf" "${COOKBOOK_STAGE}/usr/lib/pcid.d/$driver.toml"
|
||||||
done
|
done
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user