Bug 605755 - [patch] rescue --nomount exits the installer right away if no %post scripts
Summary: [patch] rescue --nomount exits the installer right away if no %post scripts
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Chris Lumens
QA Contact: Release Test Team
Depends On: 605754
Blocks: 582286
TreeView+ depends on / blocked
Reported: 2010-06-18 17:34 UTC by Alexander Todorov
Modified: 2010-11-10 19:48 UTC (History)
0 users

Clone Of: 605754
Last Closed: 2010-11-10 19:48:36 UTC

Attachments (Terms of Use)

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.

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