]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Revert "main: don't load cache or treat root as mounted on shutdown"
authorRay Strode <rstrode@redhat.com>
Thu, 31 May 2018 14:51:46 +0000 (10:51 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 31 May 2018 14:52:34 +0000 (10:52 -0400)
This reverts commit 55186d76ab699b8c2f536b87874a2fc628612fbd.

src/main.c

index 70cacd7b6732b44d89afd8c12abfc9bc07e4edc2..f1e0fa7c6e84cda6f3bd0f0807cc290212b2c47e 100644 (file)
@@ -718,17 +718,9 @@ on_newroot (state_t    *state,
         chdir (root_dir);
         chroot (".");
         chdir ("/");
-
-        switch ((int) state->mode) {
-        case PLY_MODE_BOOT:
-        case PLY_MODE_UPDATES:
-                ply_progress_load_cache (state->progress, get_cache_file_for_mode (state->mode));
-                if (state->boot_splash != NULL)
-                        ply_boot_splash_root_mounted (state->boot_splash);
-                break;
-        case PLY_MODE_SHUTDOWN:
-                break;
-        }
+        ply_progress_load_cache (state->progress, get_cache_file_for_mode (state->mode));
+        if (state->boot_splash != NULL)
+                ply_boot_splash_root_mounted (state->boot_splash);
 }
 
 static const char *