Bug 644057 - sulogin won't allow entry of root password after corrupted filesystem
Summary: sulogin won't allow entry of root password after corrupted filesystem
Keywords:
Status: CLOSED DUPLICATE of bug 636628
Alias: None
Product: Fedora
Classification: Fedora
Component: plymouth
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-18 20:13 UTC by Valdis Kletnieks
Modified: 2010-11-29 19:49 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-11-29 19:49:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Valdis Kletnieks 2010-10-18 20:13:12 UTC
Description of problem:

Not sure if this is a sysvinit-tools bug or a systemd bug.

I managed to get a corrupted filesystem, so the autofsck step in /etc/rc.sysinit failed, so it hit this code:

                str=$"(Repair filesystem)"
                PS1="$str \# # "; export PS1
                [ "$SELINUX_STATE" = "1" ] && disable_selinux
                sulogin

However, when it prompted for the root password, it would exit on the very first keypress and say 'Login incorrect.' and prompt again.  Looks like
the stty settings were all scrogged up.  I suspect that the old sysvinit
would set semi-sane settings on /dev/console, so sulogin "worked", but the new systemd code is failing to set stty settings.

Version-Release number of selected component (if applicable):
sysvinit-tools-2.87-5.dsf.fc15.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Bill Nottingham 2010-11-01 14:45:00 UTC
initscripts doesn't touch the tty settings itself; this is likely one of plymouth or systemd.

Comment 2 Valdis Kletnieks 2010-11-10 19:44:43 UTC
More info:

1) If I passed '3' on the boot command line to go into runlevel 3, I ended up with messed up TTY settings on tty1 but correct settings on tty2.

2) While in runlevel 3, I did a 'telinit s' to go to single user - and although the stty settings were correct while in runlevel 3, the settings on the single-user shell *on that same VT* were again hosed up.

Comment 3 Valdis Kletnieks 2010-11-10 19:45:35 UTC
Oh, and I forgot - booting to single-user mode gets hosed up settings as well, so it's apparently *not* sulogin, which doesn't get run in that case.

Comment 4 Sandro Bonazzola 2010-11-29 09:00:39 UTC
It seems a duplicate of bug #636628.

Comment 5 Bill Nottingham 2010-11-29 19:49:53 UTC

*** This bug has been marked as a duplicate of bug 636628 ***


Note You need to log in before you can comment on or make changes to this bug.