commit:     2906b025dbc60ef1f53427950a8d2cbd14dcc5b9
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  4 16:06:12 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Aug  4 16:06:12 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=2906b025

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 <AT> gentoo.org>

 defaults/linuxrc | 2 ++
 1 file changed, 2 insertions(+)

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

Reply via email to