]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: all update-root-fs for shutdown
authorRay Strode <rstrode@redhat.com>
Mon, 25 Feb 2013 19:39:25 +0000 (14:39 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 25 Feb 2013 19:39:25 +0000 (14:39 -0500)
Some distros now switch root back to the initrd at shutdown.

This commit allows plymouth to go along for the ride.

src/main.c

index 6ceb27a4a252b450ecf60f5882a53531f7a4c635..5ce34a33e75b2344429d1d30d0f26967dcc675a3 100644 (file)
@@ -589,12 +589,6 @@ static void
 on_newroot (state_t    *state,
             const char *root_dir)
 {
-  if (state->mode != PLY_MODE_BOOT)
-    {
-      ply_trace ("new root is only supported in boot mode ");
-      return;
-    }
-
   ply_trace ("new root mounted at \"%s\", switching to it", root_dir);
   chdir(root_dir);
   chroot(".");