aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-03-13 17:56:29 +0100
committerThomas Deutschmann <whissi@gentoo.org>2021-03-14 20:33:20 +0100
commitc26b9d493c8530bbfd69e0148ce72a959d7c5321 (patch)
tree1b0373aa846d787a2f7f699dd86e3350b6afe594
parentBump strace to v5.11 (diff)
downloadgenkernel-c26b9d493c8530bbfd69e0148ce72a959d7c5321.tar.gz
genkernel-c26b9d493c8530bbfd69e0148ce72a959d7c5321.tar.bz2
genkernel-c26b9d493c8530bbfd69e0148ce72a959d7c5321.zip
initrd.scripts: bootstrapFS(): Create /dev/tty0
If we create ttyS0, we should also create tty0. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r--defaults/initrd.scripts1
1 files changed, 1 insertions, 0 deletions
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