diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-08-04 18:06:12 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-08-04 18:06:12 +0200 |
commit | 2906b025dbc60ef1f53427950a8d2cbd14dcc5b9 (patch) | |
tree | 40898d98042ef5e9c0c3e138b65e81def8c93c24 /defaults/linuxrc | |
parent | gen_compile.sh: compile_external_modules(): Export KERNEL_OUTPUTDIR as KV_OUT... (diff) | |
download | genkernel-2906b025dbc60ef1f53427950a8d2cbd14dcc5b9.tar.gz genkernel-2906b025dbc60ef1f53427950a8d2cbd14dcc5b9.tar.bz2 genkernel-2906b025dbc60ef1f53427950a8d2cbd14dcc5b9.zip |
linuxrc: Create /dev/tty{0,1}
/dev/tty1 is used by local debug shell for example.
Fixes: cf85138 ("initramfs: Don't call mknod when --busybox is used")
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'defaults/linuxrc')
-rw-r--r-- | defaults/linuxrc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc index 4113b63..e21e555 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -13,6 +13,8 @@ splash() { [ ! -e /dev/console ] && mknod /dev/console c 5 1 [ ! -e /dev/null ] && mknod /dev/null c 1 3 [ ! -e /dev/tty ] && mknod /dev/tty c 5 0 +[ ! -e /dev/tty0 ] && mknod /dev/tty0 c 4 0 +[ ! -e /dev/tty1 ] && mknod /dev/tty1 c 4 1 [ ! -e /dev/urandom ] && mknod /dev/urandom c 1 9 [ ! -e /dev/random ] && mknod /dev/random c 1 8 [ ! -e /dev/zero ] && mknod /dev/zero c 1 5 |