Bug 605755

Summary: [patch] rescue --nomount exits the installer right away if no %post scripts
Product: Red Hat Enterprise Linux 6 Reporter: Alexander Todorov <atodorov>
Component: anacondaAssignee: Chris Lumens <clumens>
Status: CLOSED CURRENTRELEASE QA Contact: Release Test Team <release-test-team>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: anaconda-13.21.53-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 605754 Environment:
Last Closed: 2010-11-10 19:48:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 605754    
Bug Blocks: 582286    

Description Alexander Todorov 2010-06-18 17:34:01 UTC
+++ This bug was initially created as a clone of Bug #605754 +++

Created an attachment (id=425198)
patch generated by git format-patch

Description of problem:
When running the installer in rescue mode with rescue --nomount and tehre are no %post scripts in the kickstart file the installer will not start a shell but exit. 

A patch is attached which will execute the scripts if they are present otherwise run interactive shell. 

DISCLAIMER: this is not tested at all but should work.

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

How reproducible:

Steps to Reproduce:
1. Run with a ks.cfg which has only the line:
rescue --nomount
Actual results:
stage2 starts and exits.

Expected results:
Start a shell if no %post scripts are present.

Additional info:

Comment 1 RHEL Product and Program Management 2010-06-18 17:43:21 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for

Comment 2 Chris Lumens 2010-06-21 14:16:32 UTC
Thanks for the patch.  Pushed.

Comment 4 Alexander Todorov 2010-07-05 09:08:29 UTC
With anaconda-13.21.56 and "rescue --nomount" an interactive shell is started when there's no %post script. Moving to VERIFIED.

Comment 5 releng-rhel@redhat.com 2010-11-10 19:48:36 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.