Anaconda Exception: parserError: xmlParseMemory() failed

Dan Cutler dcutler at intelimedix.com
Wed Aug 8 18:26:09 UTC 2007


Glory be!

 

I’ve found my own answer…

 

HYPERLINK "http://rhlinux.redhat.com/anaconda/comps.html"http://rhlinux.redhat.com/anaconda/comps.html

 

This handy python script showed where my typo was in my comps.xml file.

 

genhd is working once again!  The world has been saved ;-D  

 

#!/usr/bin/python
 
import rhpl.comps
import sys
 
comps = rhpl.comps.Comps(sys.argv[1])
for group in comps.groups.values():
    pkgs = []
    for (type, pkg) in group.packages.values():
        if type == u'mandatory':
            pkgs.append(pkg)
    print group.name, pkgs

 

--Dan

   _____  

From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Dan Cutler
Sent: Tuesday, August 07, 2007 1:08 PM
To: kickstart-list at redhat.com
Subject: Anaconda Exception: parserError: xmlParseMemory() failed

 

Fellow systems builders,

 

I have been happily PXE booting Linux boxes with custom package lists via kickstart and a little cfengine.

 

I was doing what I thought was a typical cycle:

 

            Added a few custom groups to ks.cfg, 

create rpm’s 

copy rpm’s to my netboot RPMS directory 

edit comps.xml - add rpms to my custom groups

run genhdlist   ( /usr/lib/anaconda-runtime/genhdlist --withnumbers --hdlist /i386/linux4.4/RedHat/base/hdlist /i386/linux4.4)

 

I have been doing this awhile without incident (and enjoying the benefits ;-) until my build system suddenly broke while parsing comps.xml (although there doesn’t appear to be anything wrong with my comps.xml).

 

>From anacdump.txt…

 

Traceback (most recent call last):

  File "/usr/bin/anaconda", line 1181, in ?

    intf.run(id, dispatch, configFileData)

 

…snip…

 

  File "/usr/lib/python2.3/site-packages/libxml2.py", line 1175, in parseMemory

    if ret is None:raise parserError('xmlParseMemory() failed')

parserError: xmlParseMemory() failed

 

I’m seeing that folks are saying the “genhdlist” is outdated.  Maybe I should be generating hdlist in another way?

 

What is the best way to generate hdlist*?  How can I tell if my comps.xml is not matching up with my RPM repo?

 

Thanks!

 

--Dan Cutler


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 8/6/2007 4:53 PM



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 8/6/2007 4:53 PM



No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 8/6/2007 4:53 PM
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20070808/d6ed48b0/attachment.htm>


More information about the Kickstart-list mailing list