From: Frederic Crozat Date: Tue, 13 Oct 2009 16:01:24 +0000 (+0200) Subject: [ daemon ] handle plymouth:force-splash on kernel cmdline X-Git-Tag: 0.8.0~160 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e3ae665bc2e1386de7b3396b16a3ffef06c76db;p=thirdparty%2Fplymouth.git [ daemon ] handle plymouth:force-splash on kernel cmdline When booting with init=..., plymouthd disables itself. It is problematic when using bootchartd (bug #22180). plymouth:force-splash allows to force plymouthd splash. Ensure init= value is not used when starting plymouthd for shutdown. --- diff --git a/src/main.c b/src/main.c index c309fab2..66c0f515 100644 --- a/src/main.c +++ b/src/main.c @@ -474,6 +474,9 @@ static bool plymouth_should_ignore_show_splash_calls (state_t *state) { ply_trace ("checking if plymouth should be running"); + if (state->mode != PLY_MODE_BOOT || ply_string_has_prefix (state->kernel_command_line, "plymouth:force-splash") || strstr (state->kernel_command_line, " plymouth:force-splash") != NULL) + return false; + return ply_string_has_prefix (state->kernel_command_line, "init=") || strstr (state->kernel_command_line, " init=") != NULL; }