aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinitramfs-init.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index bbfd53e..3c05f81 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -191,6 +191,9 @@ setup_inittab_console(){
esac
shift
+ # skip "current console" from beign added to inittab
+ [ "$tty" = "tty0" ] && continue
+
# do nothing if inittab already have the tty set up
grep -q "^$tty:" $sysroot/etc/inittab && continue
echo "# enable login on alternative console" >> $sysroot/etc/inittab