init: Change cwd to / at boot

This commit is contained in:
Wildan M
2026-06-30 12:14:52 +07:00
parent ae1538c27e
commit f80b51411b
2 changed files with 13 additions and 1 deletions
+1
View File
@@ -97,6 +97,7 @@ impl Command {
command.args(process.args.iter().map(|arg| subst_env(arg)));
command.env_clear();
command.envs(&config.envs).envs(&process.envs);
command.current_dir(&config.cwd);
let mut child = match command.spawn() {
Ok(child) => child,