|
@@ -806,11 +806,6 @@ static noinline int init_post(void)
|
|
|
system_state = SYSTEM_RUNNING;
|
|
|
numa_default_policy();
|
|
|
|
|
|
- if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
|
|
|
- printk(KERN_WARNING "Warning: unable to open an initial console.\n");
|
|
|
-
|
|
|
- (void) sys_dup(0);
|
|
|
- (void) sys_dup(0);
|
|
|
|
|
|
current->signal->flags |= SIGNAL_UNKILLABLE;
|
|
|
|
|
@@ -873,6 +868,12 @@ static int __init kernel_init(void * unused)
|
|
|
|
|
|
do_basic_setup();
|
|
|
|
|
|
+ /* Open the /dev/console on the rootfs, this should never fail */
|
|
|
+ if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
|
|
|
+ printk(KERN_WARNING "Warning: unable to open an initial console.\n");
|
|
|
+
|
|
|
+ (void) sys_dup(0);
|
|
|
+ (void) sys_dup(0);
|
|
|
/*
|
|
|
* check if there is an early userspace init. If yes, let it do all
|
|
|
* the work
|