Message ID | 1593256705-19008-1-git-send-email-adron@yapic.net |
---|---|
State | Rejected |
Headers | show |
Series | package: procd: Bug fix for case when kernel cmdline="console=null". In this case, the message is displayed in procd log: failed to set stdio: No such device and the working directory for the procd remains /dev ! chdir("/dev") is done in set_stdio(). And | expand |
diff --git a/package/system/procd/patches/001-fix_null_console_bug.patch b/package/system/procd/patches/001-fix_null_console_bug.patch new file mode 100644 index 0000000..d1e53b7 --- /dev/null +++ b/package/system/procd/patches/001-fix_null_console_bug.patch @@ -0,0 +1,12 @@ +diff -rNu a/state.c b/state.c +--- a/state.c 2018-03-28 12:29:49.000000000 +0300 ++++ b/state.c 2020-06-26 18:52:27.098719261 +0300 +@@ -108,7 +108,7 @@ + case STATE_UBUS: + // try to reopen incase the wdt was not available before coldplug + watchdog_init(0); +- set_stdio("console"); ++ set_console(); + LOG("- ubus -\n"); + procd_connect_ubus(); + service_start_early("ubus", ubus_cmd);