]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - init/do_mounts_initrd.c
Merge branch 'master' into for-3.9-async
[karo-tx-linux.git] / init / do_mounts_initrd.c
index dfe606a7dd61abbdc289cb87bf5e8631b31a2e3f..a32ec1ce882b22dc96ed714a3f68e5838ed98af3 100644 (file)
@@ -36,6 +36,10 @@ __setup("noinitrd", no_initrd);
 static int init_linuxrc(struct subprocess_info *info, struct cred *new)
 {
        sys_unshare(CLONE_FS | CLONE_FILES);
+       /* stdin/stdout/stderr for /linuxrc */
+       sys_open("/dev/console", O_RDWR, 0);
+       sys_dup(0);
+       sys_dup(0);
        /* move initrd over / and chdir/chroot in initrd root */
        sys_chdir("/root");
        sys_mount(".", "/", NULL, MS_MOVE, NULL);