mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-21 05:58:21 +02:00
main: all update-root-fs for shutdown
Some distros now switch root back to the initrd at shutdown. This commit allows plymouth to go along for the ride.
This commit is contained in:
parent
5ee5644f6c
commit
59d78b4427
1 changed files with 0 additions and 6 deletions
|
|
@ -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(".");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue