summaryrefslogtreecommitdiffstats
path: root/initramfs-init.in
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-xinitramfs-init.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index a481669..ea12787 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