projects
/
cascardo
/
b2hw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Create tty at chroot.
[cascardo/b2hw.git]
/
main.c
diff --git
a/main.c
b/main.c
index
daea84c
..
26b4274
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-145,6
+145,10
@@
int main(int argc, char **argv)
if (r) printf("failed chroot\n");
r = chdir("/");
if (r) printf("failed second chdir\n");
+ sysfsmount_setup();
+ devmount_setup();
+ devpts_setup();
+ do_mknod("/sys/class/tty", "ttyGS0", 0, 1);
execve("/bin/bash", args, NULL);
return 0;
}