Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348924
b: refs/heads/master
c: 43b1682
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Jan 19, 2013
1 parent f858c25 commit b6b7132
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2ddedcd21f44a5873ee3d6ff6118a2318e01e18
refs/heads/master: 43b16820249396aea7eb57c747106e211e54bed5
4 changes: 4 additions & 0 deletions trunk/init/do_mounts_initrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b6b7132

Please sign in to comment.