Bug 350491 - Anaconda crashes when using kickstart post script
Summary: Anaconda crashes when using kickstart post script
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 7
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Chris Lumens
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-24 14:10 UTC by Paul Sorensen
Modified: 2008-02-04 15:17 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-02-04 15:17:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Paul Sorensen 2007-10-24 14:10:02 UTC
When using a ks.cfg file with a %post section, anaconda crashes with the message
saying that global STATE_PRE is not defined in /usr/lib/anaconda/kickstart.py at
line 738.

I was using revisor and system-config-kickstart to create the DVD.

In looking at the code for anaconda, I traced the bug to kickstart/parser.py.
Seems that in the latest version 1.13-2.fc7 version of pykickstart this symbol
was changed from STATE_PRE to STATE_SCRIPT. Or rather the symbols STATE_PRE,
STATE_POST and STATE_TRACEBACK where removed and STATE_SCRIPT was added.

So my conclusion is anaconda is out of sync with pykickstart development.

Comment 1 Chris Lumens 2007-10-25 15:43:40 UTC
Please try pykickstart-1.13.1-1 in f7-updates-testing to see if this corrects
the issue for you.  Thanks.

Comment 2 Fedora Update System 2007-11-09 23:51:58 UTC
pykickstart-1.13.1-1.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update pykickstart'

Comment 3 Jeroen van Meeuwen 2008-02-03 20:21:06 UTC
Seems not to have been fixed, anaconda is still addressing STATE_PRE which
doesn't exist. Rebuilding anaconda from GIT...

Comment 4 Jeroen van Meeuwen 2008-02-04 01:46:46 UTC
Fixed with commit 33091805cebbeaf09d276d0fbb7cea4574aeec8a in the f8-branch of
anaconda. Packaged versions at http://www.kanarip.com/f8/

Comment 5 Jeroen van Meeuwen 2008-02-04 01:47:26 UTC
Hmmm, that should be http://www.kanarip.com/anaconda/f7/ (3AM here ;p)


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