From: Andrew Gaffney Date: Tue, 16 Dec 2008 18:34:20 +0000 (-0600) Subject: Run getty for tty1 in the foreground X-Git-Tag: v3.4.10.903~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0750197e450ea6058c8c882d048df6cbf81c2c66;p=genkernel.git Run getty for tty1 in the foreground --- diff --git a/ChangeLog b/ChangeLog index 6289f92..74eaa20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney # Distributed under the GPL v2 + 16 Dec 2008; Andrew Gaffney netboot/linuxrc.x: + Run getty for tty1 in the foreground + 16 Dec 2008; Andrew Gaffney netboot/linuxrc.x, +netboot/misc/bin/ashlogin: Use getty to launch ash, so that we can use ^C and friends diff --git a/netboot/linuxrc.x b/netboot/linuxrc.x index e1537d7..3ac8498 100755 --- a/netboot/linuxrc.x +++ b/netboot/linuxrc.x @@ -305,9 +305,13 @@ LaunchShell() { #// All Done! echo -e "" # /bin/ash - for i in 1 2 3 4; do + + for i in 2 3 4; do getty -n -l /bin/ashlogin tty${i} linux & done + + # Run this one in the foreground, so that our pid 1 doesn't exit + getty -n -l /bin/ashlogin tty1 linux } #//--------------------------------------------------------------------------------