Bug 170331 - [PATCH] loader can't parse kickstart correctly when %pre, %post, or %packages have options/args
Summary: [PATCH] loader can't parse kickstart correctly when %pre, %post, or %packages...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: anaconda
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks: 168429
TreeView+ depends on / blocked
 
Reported: 2005-10-10 19:14 UTC by Jay Turner
Modified: 2015-01-08 00:10 UTC (History)
2 users (show)

Fixed In Version: RHBA-2006-0126
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-03-07 21:29:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2006:0126 0 qe-ready SHIPPED_LIVE anaconda bug fix update 2006-03-06 05:00:00 UTC

Comment 2 Brandon Zehm 2005-10-12 17:32:37 UTC
Where's the patch?  My %post isn't working and I'm wondering if this bug is
related to what I'm seeing.

Comment 3 Johnray Fuller 2005-11-22 20:39:35 UTC
This is the bug:

The part of loader that parses the kickstart for commands will continue parsing
throughout the %pre/%post/%package sections until one of them doesn't have any
options. This is because in ksReadCommands it strips leading and trailing
whitespace but then checks for the *exact* strings, not just initial substrings.

1. Put a python script as a %pre right after the commands section of ks.cfg 
2. make sure you assign to a variable called 'url' in the python script

Actual results:
You get a hung loader

It sounds like you are seeing a different problem.

J

Comment 7 Red Hat Bugzilla 2006-03-07 21:29:53 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0126.html



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