Bug 116848 - kickstart directive "skipx" is not acknowledged for a headless machine
Summary: kickstart directive "skipx" is not acknowledged for a headless machine
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: anaconda
Version: 3.0
Hardware: powerpc
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Mike McLean
URL:
Whiteboard: FC2
Depends On:
Blocks: 116727
TreeView+ depends on / blocked
 
Reported: 2004-02-25 18:38 UTC by James Laska
Modified: 2013-09-02 05:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-08-18 00:32:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2004:417 0 normal SHIPPED_LIVE Updated grub, parted, rhpl and anaconda packages 2004-09-02 04:00:00 UTC

Description James Laska 2004-02-25 18:38:12 UTC
Customer is doing a kickstart install on an IBM p630 7028-6C4 with no
video cards.  They are generating a ks.cfg using
redhat-config-kickstart.  The kickstart file appears valid and was
confirmed to be internally.  However, in anaconda we are detecting
that the machine has no video cards, assuming it is a headless
install, but later (in kickstart.py) looking for id.xsetup.skipx but
id.xsetup is None.

The piece of code in anaconda that detects the headless machine is:

if not isHeadless:
    #
    # Probe what is available for X and setup a hardware state
    #
    # try to probe interesting hw
    import rhpl.xserver as xserver
    skipddcprobe = (skipddc or (x_already_set and flags.test))
    skipmouseprobe = not (not os.environ.has_key('DISPLAY') or
flags.setupFilesystems)
                                                                     
                            
    (videohw, monitorhw, mousehw) =
xserver.probeHW(skipDDCProbe=skipddcprobe,
                                                    skipMouseProbe =
skipmouseprobe)
    # if the len(videocards) is zero, then let's assume we're isHeadless
    if len(videohw.videocards) == 0:
        print _("No video hardware found, assuming headless")
        videohw = None
        monitorhw = None
        mousehw = None
        isHeadless = 1
    else:
        # setup a X hw state for use later with configuration.
        try:
            xcfg = xhwstate.XF86HardwareState(defcard=videohw,
                                              defmon=monitorhw)
        except Exception, e:
            print _("Unable to instantiate a X hardware state object.")
            xcfg = None

Current workarounds suggested are to not use the "skipx" kickstart
directive for a headless machine.

Comment 2 Jeremy Katz 2004-03-16 21:19:48 UTC
Simple workaround of "don't specify X config for machines that have no
X hardware" for now... will look at fixing better in the future (and
probably not going to backport unless someone screams loud)

Comment 6 Jeremy Katz 2004-03-23 19:04:35 UTC
Fixed on trunk of CVS (*not* the branch) for future releases 

Comment 9 Jay Turner 2004-08-18 00:32:13 UTC
Fix is present in anaconda-9.1.3-2.RHEL to work around this issue.

Comment 10 John Flanagan 2004-09-02 05:39:49 UTC
An errata 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-2004-417.html



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