Revert to just running /bin/bash on /dev/console for serial. We still start getty on tty2-6

cleanup-cruft
Andrew Gaffney 16 years ago
parent 2032fa25bf
commit 8a5f66f65a

@ -2,6 +2,10 @@
# Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney # Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
# Distributed under the GPL v2 # Distributed under the GPL v2
24 Dec 2008; Andrew Gaffney <agaffney@gentoo.org> netboot/linuxrc.x:
Revert to just running /bin/bash on /dev/console for serial. We still
start getty on tty2-6
23 Dec 2008; Andrew Gaffney <agaffney@gentoo.org> gen_cmdline.sh: 23 Dec 2008; Andrew Gaffney <agaffney@gentoo.org> gen_cmdline.sh:
Allow old 'initramfs' option instead of 'ramdisk' for compatability Allow old 'initramfs' option instead of 'ramdisk' for compatability

@ -307,8 +307,13 @@ LaunchShell() {
getty -n -l /bin/ashlogin 38400 tty${i} & getty -n -l /bin/ashlogin 38400 tty${i} &
done done
# We run the getty for tty1 in the foreground so our pid 1 doesn't end # # We run the getty for tty1 in the foreground so our pid 1 doesn't end
getty -n -l /bin/ashlogin 38400 tty1 # getty -n -l /bin/ashlogin 38400 tty1
# We were running the above code, but that doesn't work well on serial. Until
# we can autodetect a serial console and start a getty there, we'll just run
# ash on /dev/console
/bin/ash
} }
#//-------------------------------------------------------------------------------- #//--------------------------------------------------------------------------------

Loading…
Cancel
Save