Red Hat Bugzilla – Bug 483088
Returning from "init 1" does not start login
Last modified: 2014-03-16 23:17:27 EDT
Description of problem:
After fixing bug#483031, I can reach init 1, but I can't reach login: prompt again.
Version-Release number of selected component (if applicable):
same as https://bugzilla.redhat.com/show_bug.cgi?id=483031
Steps to Reproduce:
1. init 1
Telling INIT to go to single user mode.
[root@builder /]# exit
ip6tables: Applying firewall rules: [ OK ]
iptables: Applying firewall rules: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
Starting restorecond: [ OK ]
Starting system logger: [ OK ]
Starting mcstransd: [ OK ]
Starting system message bus: [ OK ]
Mounting other filesystems: [ OK ]
Starting auditd: [ OK ]
Enabling nightly apt update: [ OK ]
Enabling nightly yum update: [ OK ]
Starting sshd: [ OK ]
Starting postfix: [ OK ]
Starting lighttpd: [ OK ]
[ OK ] crond: [ OK ]
[ OK ] atd: [ OK ]
Part of "ps ax" (I don't know if helps)
2763 tty4 Ss+ 0:00 /sbin/mingetty tty4
2764 tty5 Ss+ 0:00 /sbin/mingetty tty5
2765 tty2 Ss+ 0:00 /sbin/mingetty tty2
2766 tty3 Ss+ 0:00 /sbin/mingetty tty3
2767 tty1 Ss+ 0:00 /sbin/mingetty tty1
2768 tty6 Ss+ 0:00 /sbin/mingetty tty6
What's your specific console device - /dev/hvc? /dev/hvc0?
(In reply to comment #1)
> What's your specific console device - /dev/hvc? /dev/hvc0?
title Fedora (126.96.36.199-170.2.5.fc10.x86_64)
kernel /boot/vmlinuz-188.8.131.52-170.2.5.fc10.x86_64 ro root=LABEL=/ console=hvc0
It is answer for you question?
echo test > /dev/hvc0
echo test > /dev/console
displays text on xen virtual console.
What happens if you run by hand '/lib/udev/console_check hvc0'?
# Automatically start a configured serial console
# How this works:
# On boot, a udev helper examines /dev/console. If a serial console is the
# primary console (last console on the commandline in grub), the event
# 'fedora.serial-console-available <port name> <speed>' is emitted, which
# triggers this script. It waits for the runlevel to finish, ensures
# the proper port is in /etc/securetty, and starts the getty.
# If your serial console is not the primary console, or you want a getty
# on serial even if it's not the console, create your own event by copying
# /etc/event.d/tty[2-6], and changing the getty line in that file.
start on fedora.serial-console-available *
stop on runlevel 
The problem is that 'stop' line ... as soon as you go into runlevel 1, it kills the job, and it won't get respawned when you exit, as you won't get the udev event.
So, it should be getting respawned by the post-stop script in /etc/event.d/serial; however, that's not properly handling it being stopped by entering runlevel 1.
I don't have a serial console machine at the moment to debug this, but that's where to start looking.
If you need a virtual machine to debug this, here is one:
It's size is 332 MB (it's already compressed as an compressed qcow2 image).
This image can be run with qemu or kvm command:
qemu-kvm -m 1024 -hda serial_test.img -nographic -serial stdio -snapshot
and fails with this message:
init: rc1 post-stop process (1185) terminated with status 1
"init 1" is the default for this image, you need to only boot it.
There is another problem with upstart boot. On my workstation there was some problems in my filesystem. I tryed to run "forcefsck", but after test it failed with non automatically recoverable errors and required root password. My problem was, that I can't type root password. Each key sent an <LF> (without <CR>) and there was no possibility to log in. Only init=/bin/bash helped to fix partition errors. My console was a classic PC console (not serial). Do you think this should be reported as new bug?
Yes, that would be a new bug.
Assigning it, was created the other bug?
(In reply to comment #8)
> Assigning it, was created the other bug?
No. I can't reproduce second but on other machine. Only happens on my workstation and i can't do more tests on this machine now.
This message is a reminder that Fedora 10 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 10. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '10'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 10's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 10 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here:
Fedora 10 changed to end-of-life (EOL) status on 2009-12-17. Fedora 10 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version.
Thank you for reporting this bug and we are sorry it could not be fixed.