Bug 199262

Summary: can't cleanly exit shell from FC5 rescue CD
Product: [Fedora] Fedora Reporter: Adam Monsen <haircut>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
URL: https://www.redhat.com/archives/anaconda-devel-list/2006-July/msg00014.html
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-19 18:53:58 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 Adam Monsen 2006-07-18 14:26:11 UTC
Description of problem:
I can't cleanly exit the shell of the Fedora Core 5 rescue CD. When I type in
'exit' and hit enter, I see the following:

sh-3.1# exit
logout

...and nothing happens.

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. boot to Fedora Core 5 rescue CD
2. type 'linux rescue' at the prompt and hit ENTER
3. choose language = English
4. choose keyboard = us
5. don't start up network interfaces
6. don't try to find existing installations
7. at the shell prompt, type 'exit' and hit ENTER
  
Actual results:
system hangs after 'logout' is printed to the console

Expected results:
system reboots cleanly

Additional info:
'shutdown -r now' doesn't work, either:

sh-3.1# shutdown -r now
(running in test mode).
Greetings.
anaconda installer init version 11.0.5 starting
mounting /proc filesystem... done
creating /dev filesystem... done
mounting /dev/pts (unix98 pty) filesystem... done
mounting /sys filesystem... done
sh-3.1#

Here is a workaround that appears to work: killing the 'init' process with a SIGINT:

sh-3.1# kill -INT 1

Or using an 'init' symlink:

sh-3.1# cd /tmp
sh-3.1# ln -s /bin/init reboot
sh-3.1# ./reboot

Comment 1 Jeremy Katz 2006-07-19 18:53:58 UTC
Fixed in CVS (although you'll want to use reboot instead of shutdown)