commit: c26b9d493c8530bbfd69e0148ce72a959d7c5321
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 13 16:56:29 2021 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Mar 14 19:33:20 2021 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c26b9d49
initrd.scripts: bootstrapFS(): Create /dev/tty0
If we create ttyS0, we should also create tty0.
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
defaults/initrd.scripts | 1 +
1 file changed, 1 insertion(+)
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index d005e0d..b64a2c4 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -314,6 +314,7 @@ bootstrapFS() {
[ ! -e "${NEW_ROOT}/dev/null" ] && run mknod -m 666
"${NEW_ROOT}"/dev/null c 1 3
[ ! -e "${NEW_ROOT}/dev/zero" ] && run mknod -m 666
"${NEW_ROOT}"/dev/zero c 1 5
[ ! -e "${NEW_ROOT}/dev/console" ] && run mknod -m 600
"${NEW_ROOT}"/dev/console c 5 1
+ [ ! -e "${NEW_ROOT}/dev/tty0" ] && run mknod -m 620
"${NEW_ROOT}"/dev/tty0 c 4 0
[ ! -e "${NEW_ROOT}/dev/ttyS0" ] && run mknod -m 660
"${NEW_ROOT}"/dev/ttyS0 c 4 64
# For SGI LiveCDs