]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[main] Be more forgiving of an absent boot splash
authorRay Strode <rstrode@redhat.com>
Wed, 26 May 2010 17:10:46 +0000 (13:10 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 26 May 2010 17:11:54 +0000 (13:11 -0400)
Mandriva has cases where they need to drop to details mode
before /usr is mounted.  /usr has the details splash plugin,
so this causes plymouth to explicitly exit.

This commit makes plymouth cope with that scenario slightly
better.  It takes out the exit(1) call which was clearly bogus,
and also makes parts of the code handle a NULL splash better.
This is not a real fix though.

Ultimately, we should make "details" be built-in as a nice failsafe.
There's no reason we should need to load it off the disk as a plugin.

src/main.c

index e622755faef4764a8f20305004ca941ee9e84ad8..cbb65413f8d79ff9f2634b2faf4d30b3d243a3f6 100644 (file)
@@ -175,6 +175,12 @@ on_update (state_t     *state,
 static void
 show_messages (state_t *state)
 {
+  if (state->boot_splash == NULL)
+    {
+      ply_trace ("not displaying messages, since no boot splash");
+      return;
+    }
+
   ply_list_node_t *node = ply_list_get_first_node (state->messages);
   while (node != NULL)
     {
@@ -201,8 +207,7 @@ show_detailed_splash (state_t *state)
 
   if (state->boot_splash == NULL)
     {
-      ply_trace ("Could not start detailed splash screen, exiting");
-      exit (1);
+      ply_trace ("Could not start detailed splash screen, this could be a problem.");
     }
 }