Commit Graph

4 Commits

Author SHA1 Message Date
bjorn3 029f56eebe init: Remove cd command
The working directory doesn't matter for services and login sessions
already cd to the user home directory. This removes one source of global
state manipulation.
2026-02-19 20:26:51 +01:00
bjorn3 0227c0677c init: Introduce switchroot command
This sets PATH, LD_LIBRARY_PATH and runs init scripts for the new root.
In the future this could replace the entire set of services that should
run, restarting any services for which a newer executable is available
in the new root and stopping any services which don't exist in the new
root. This behavior could also be useful for soft-reboots in the future
to handle updates without rebooting the entire system.
2026-02-19 20:18:07 +01:00
bjorn3 7dad7af1f0 init: Explicitly specify LD_LIBRARY_PATH in init scripts 2026-02-18 21:46:08 +01:00
bjorn3 b997641418 Split up init.rc 2026-02-17 22:26:04 +01:00