Red Hat Bugzilla – Bug 350491
Anaconda crashes when using kickstart post script
Last modified: 2008-02-04 10:17:51 EST
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
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.
Please try pykickstart-1.13.1-1 in f7-updates-testing to see if this corrects
the issue for you. Thanks.
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'
Seems not to have been fixed, anaconda is still addressing STATE_PRE which
doesn't exist. Rebuilding anaconda from GIT...
Fixed with commit 33091805cebbeaf09d276d0fbb7cea4574aeec8a in the f8-branch of
anaconda. Packaged versions at http://www.kanarip.com/f8/
Hmmm, that should be http://www.kanarip.com/anaconda/f7/ (3AM here ;p)