return;
splash_string = command_line_get_string_after_prefix (state->kernel_command_line,
- "plymouth:splash=");
+ "plymouth.splash=");
+
if (splash_string != NULL)
{
const char *end;
plymouth_should_ignore_show_splash_calls (state_t *state)
{
ply_trace ("checking if plymouth should be running");
- if (state->mode != PLY_MODE_BOOT || command_line_has_argument (state->kernel_command_line, "plymouth:force-splash"))
+ if (state->mode != PLY_MODE_BOOT || command_line_has_argument (state->kernel_command_line, "plymouth.force-splash"))
return false;
return command_line_get_string_after_prefix (state->kernel_command_line, "init=") != NULL;
get_kernel_command_line (state_t *state)
{
int fd;
+ const char *remaining_command_line;
+ char *key;
ply_trace ("opening /proc/cmdline");
fd = open ("proc/cmdline", O_RDONLY);
return false;
}
+
+ /* we now use plymouth.argument for kernel commandline arguments.
+ * It used to be plymouth:argument. This bit just rewrites all : to be .
+ */
+ remaining_command_line = state->kernel_command_line;
+ while ((key = strstr (remaining_command_line, "plymouth:")) != NULL)
+ {
+ char *colon;
+
+ colon = key + strlen ("plymouth");
+ *colon = '.';
+
+ remaining_command_line = colon + 1;
+ }
ply_trace ("Kernel command line is: '%s'", state->kernel_command_line);
+
close (fd);
return true;
}
ply_trace ("checking if tracing should be enabled");
path = command_line_get_string_after_prefix (state->kernel_command_line,
- "plymouth:debug=file:");
+ "plymouth.debug=file:");
if (path != NULL ||
- command_line_has_argument (state->kernel_command_line, "plymouth:debug"))
+ command_line_has_argument (state->kernel_command_line, "plymouth.debug"))
{
#ifdef LOG_TO_DEBUG_FILE
int fd;
{
ply_trace ("checking if console messages should be redirected and logged");
- if (command_line_has_argument (state->kernel_command_line, "plymouth:nolog"))
+ if (command_line_has_argument (state->kernel_command_line, "plymouth.nolog"))
{
ply_trace ("logging won't be enabled!");
state->no_boot_log = true;