Parse commandline strings, move away from old env vars
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 2m6s
Build documentation / build-and-deploy (push) Successful in 1m18s

This commit is contained in:
2026-04-28 22:45:31 +02:00
parent 9fbe23024c
commit fbf067d418
15 changed files with 265 additions and 185 deletions

View File

@@ -28,7 +28,7 @@ static void receiver(void* arg) {
}
static void run_ce_interactive(void) {
int ce_pid = exec("sys", "/ce", "-i");
int ce_pid = exec("sys", "/ce", NULL);
ce_pgid = get_procgroup(ce_pid);
process_spawn(&receiver, NULL);
@@ -44,12 +44,9 @@ static void run_ce_interactive(void) {
}
static void ce_run_init_script(void) {
int ce_pid = exec_partial("sys", "/ce");
int ce_pid = exec_partial("sys", "/ce", "-script sys:/init.cmd");
ce_pgid = get_procgroup(ce_pid);
const char* script_path = "sys:/init.cmd";
env_set(ce_pgid, "s", (void*)script_path, strlen(script_path) + 1);
struct process_data* recv_pdata = process_spawn(&receiver, NULL);
exec_partial_fini(ce_pgid);