]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
If started with debug, log it to boot.log
authorRay Strode <rstrode@redhat.com>
Fri, 24 Oct 2008 17:06:49 +0000 (13:06 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 24 Oct 2008 17:24:53 +0000 (13:24 -0400)
src/main.c

index 9fb75133f36c80caefed133553a40fffe98ddfe0..150e5156620487a664c0faed752739b49d76289e 100644 (file)
@@ -587,9 +587,14 @@ check_verbosity (state_t *state)
      || (strstr (state->kernel_command_line, "plymouth:debug ") != NULL)
      || (strstr (state->kernel_command_line, " plymouth:debug") != NULL))
     {
+      int fd;
+
       ply_trace ("tracing should be enabled!");
       if (!ply_is_tracing ())
         ply_toggle_tracing ();
+
+      fd = open ("/dev/console", O_RDWR);
+      ply_logger_set_output_fd (ply_logger_get_error_default (), fd);
     }
   else
     ply_trace ("tracing shouldn't be enabled!");