Why RHEL5 working pyGTK `%pre` script is not getting executed when used as `%pre` script in RHEL6 kickstart installation?
Issue
- Have a pyGTK
%prescript which executes successfully in Red Hat Enterprise Linux 5 kickstart installations. - When this script is put in a kickstart file as
%prescript in Red Hat Enterprise Linux 6 installation, it doesn't get executed as expected and throws the following error.
Traceback (most recent call last):
File "/tmp/ks_prekickstart_modified.py", line 6, in <module>
import gtk
File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
_init()
File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
_gtk.init_check()
RuntimeError: could not open display
- What changed between Red Hat Enterprise Linux 5 and 6 which is causing this failure?
Environment
- Red Hat Enterprise Linux 5 & 6
- pyGTP
%prescript in kickstart installation.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
