New cmdline options to control debug and progress/status

Modeled after systemd.show_status, currently without the 'auto' setting.

- finit.debug[=bool]
- finit.show_status[=bool]
- finit.status_style[=old,classic,new,modern]

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-02-14 20:11:45 +01:00
1 parent 35e4e0d073
commit 70ca64a392
5 files changed
+74 -19

No files matched your search

+5 -5
View File
@@ -307,11 +307,8 @@ static void finalize(void)
plugin_run_hooks(HOOK_SYSTEM_UP);
service_step_all(SVC_TYPE_ANY);
/* Enable silent mode before starting TTYs */
if (!debug) {
_d("Going silent ...");
show_progress(0);
}
/* Disable progress output at normal runtime */
enable_progress(0);
/* Delayed start of TTYs at bootstrap */
_d("Launching all getty services ...");
@@ -410,6 +407,9 @@ int main(int argc, char *argv[])
if (!rescue && !debug)
screen_init();
/* Allow progress, if enabled */
enable_progress(1);
/*
* In case of emergency.
*/