mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
main: only reopen /dev/console if we switch-root to a custom init
There's no point in reopening /dev/console if we reopen it anyway afterwards.
This commit is contained in:
parent
910212e738
commit
a504223d9a
@ -1673,9 +1673,6 @@ finish:
|
||||
* rebooted while we do that */
|
||||
watchdog_close(true);
|
||||
|
||||
/* Reopen the console */
|
||||
make_console_stdio();
|
||||
|
||||
if (switch_root_dir) {
|
||||
/* Kill all remaining processes from the initrd */
|
||||
broadcast_signal(SIGTERM);
|
||||
@ -1733,6 +1730,9 @@ finish:
|
||||
fds = NULL;
|
||||
}
|
||||
|
||||
/* Reopen the console */
|
||||
make_console_stdio();
|
||||
|
||||
for (j = 1, i = 1; j < argc; j++)
|
||||
args[i++] = argv[j];
|
||||
args[i++] = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user