]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Use details plugin instead of bailing if no rhgb on kernel cmdline
authorRay Strode <rstrode@redhat.com>
Fri, 11 Jul 2008 12:43:46 +0000 (08:43 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 11 Jul 2008 12:43:46 +0000 (08:43 -0400)
We still want things like ask-for-password and logging to work.

src/main.c

index 93363e2be12e9a6c57c6f0b5c0eaab2b6bb9c585..f55d5863934c4c115034d1f322121d73b9d171b9 100644 (file)
@@ -65,6 +65,8 @@ static ply_boot_splash_t *start_boot_splash (state_t    *state,
 
 static ply_window_t *create_window (state_t *state, int vt_number);
 
+static bool plymouth_should_show_default_splash (state_t *state);
+
 static void
 on_session_output (state_t    *state,
                    const char *output,
@@ -169,7 +171,10 @@ on_show_splash (state_t *state)
       ply_window_take_console (state->window);
     }
 
-  show_default_splash (state);
+  if (plymouth_should_show_default_splash (state))
+    show_default_splash (state);
+  else
+    show_detailed_splash (state);
 }
 
 static void
@@ -416,7 +421,7 @@ set_console_io_to_vt1 (state_t *state)
 }
 
 static bool
-plymouth_should_be_running (state_t *state)
+plymouth_should_show_default_splash (state_t *state)
 {
   ply_trace ("checking if plymouth should be running");
 
@@ -457,9 +462,6 @@ initialize_environment (state_t *state)
 
   check_verbosity (state);
 
-  if (!plymouth_should_be_running (state))
-    return false;
-
   if (!set_console_io_to_vt1 (state))
     return false;