Bug 42280
Summary: | Serial console and single user mode don't cooperate | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Chris Adams <linux> |
Component: | kernel | Assignee: | Arjan van de Ven <arjanv> |
Status: | CLOSED DUPLICATE | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | CC: | notting |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-06-01 20:43:33 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Chris Adams
2001-05-25 14:51:54 UTC
Is input accepted from a local terminal, or just not at all from anywhere? I'm not sure I understand your question. When I shutdown to single user mode with a serial console, the only place input should be accepted from is the console. I have a null modem between my desktop computer (x86 7.1 running minicom) and the Alpha that is having this problem. When the Alpha is booted up, I can log in via the serial port just fine (I added an agetty line for ttyS0 to /etc/inittab and ttyS0 to /etc/securetty). If I then log in as root everything works until I try to run "shutdown now". The Alpha goes through the normal shutdown process and then starts the single user mode shell. I get the prompt on the terminal, but I cannot enter anything (my input is ignored). I just tried this on an x86 Red Hat 7.1 system here, and it works just fine, so this is somehow specific to the Alpha. What I meant was that, in the case where you have output to the serial console but no input, if you plug in a keyboard, does that work? (It shouldn't, but it would be good to know if it does...) Ah, I understand, sorry. No, that does not work either. However, the reboot keystroke (I change it from CTRL-ALT-DEL to CTRL-ALT-BS) _does_ work. Interesting. I'm changing this to SysVinit instead of initscripts, since I now realize that the init program itself is in charge of this, not the init scripts. Can you try it on a Red Hat x86 system, *with the same kernel version* that's on the alpha? I just compiled the 2.4.3-7 kernel on my x86 system, and the same thing _does_ happen (single user mode with serial console is broken). I see that both drivers/char/console.c and drivers/char/serial.c had changes. OK, I reproduced it on ia64 with 2.4.3-7 as well. Bill, dump the stty -a settings of that port at the point it starts the shell. I suspect your terminal settings are wrong it says: speed 115200 baud; line = 0; kill = ^X; -cread -brkint ixany -imaxbel -iexten -echoe -echok echoprt (This is in /etc/init.d/single. I *think* this is pointed at /dev/console (aka, the serial port) at the time.) *** This bug has been marked as a duplicate of 45284 *** |