pkgorder, genhdlist

Dan Trainor info at hostinthebox.net
Wed Jul 6 20:38:21 UTC 2005


Dan Trainor wrote:
> Hello, all -
> 
> I have a few questions here regarding the use of genhdlist and pkgorder.
>  My understanding is that something such as the following must be run,
> after editing comps.xml to suit one's needs:
> 
> ...edit comps.xml...
> ...if any RPMs are included in comps.xml, throw 'em in RedHat/RPMS...
> 
> pkgorder /tmp/rhel-1 i386 CentOS|tee /tmp/rhel-1/pkgorder.txt
> 
> genhdlist --withnumbers --fileorder /tmp/rhel-1/pkgorder.txt --hdlist
> /tmp/rhel-1/RedHat/base/hdlist /tmp/rhel-1/
> 
> 
> Now, I almost had it working up until the point where I ran genhdlist a
> second time.  I get a Python error:
> 
> AttributeError:  'dict' object has no attribute 'order'
> 
> I know nothing of python, I can only imagine that this has something to
> do with the order in which my pkgorder.txt file was created.
> 
> So then I got to thinking.  Shouldn't genhdlist create the
> base/hdlist{2} files from scratch?  I removed my existing base/hdlist{2}
> files, and genhdlist crapped out on me.  I'm not sure why.
> 
> If anyone wouldn't mind giving me some pointers, once again, I would be
> very appreciative.
> 
> Thanks!
> -dant
> 

Ah, one quick follow-up here;

When the base/hdlist{2} files are removed, and I attempt to run
pkgorder, I am presented with the following error:

Failed to read header list /tmp/rhel-1/RedHat/base/hdlist

...which makes me conclude that for some reason the base/hdlist{2} files
must exist already in order to run genhdlist.  So I guess I'm not
understanding something here since I had assumed that genhdlist creates
the base/hdlist{2} files from scratch.

Thanks again!
-dant




More information about the Kickstart-list mailing list