[SOLVED] Failing to open() /dev/tty
Hi there,
I am trying to build a small system that uses a simple boot script as init process. Yes, I pass init=myscript to the Linux kernel, crazy thing to do but it works. However, trying to open() on a tty fails on device not found, even if /dev/tty exists. Here's the small script I use to the basic things like mount tmpfs, sysfs and procfs, start the udev daemon, configure the console... Code:
#!/bin/sh Code:
I have also tried deleting /dev/tty and re-creating it again with Code:
mknod -m 666 /dev/tty c 5 0 I don't understand if /bin/sh is running on a TTY or not, because Code:
ps -a Any ideas on what am I missing here, please? |
You need some actual tty devices as well as tty itself. For example I have
Code:
crw-rw-rw- 1 root tty 5, 0 Nov 16 10:39 /dev/tty |
Quote:
Code:
mknod -m 666 /dev/tty c 5 0 |
All times are GMT -5. The time now is 06:20 PM. |