[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Customize one CD RedHat 7.2



Hello,

I want to create a single CD of the RedHat 7.2.

I copy all the rpms that I want into a .../RedHat/RPMS directory
I have put the ks.cfg  into the initrd.img
I copy the files .disc1-i386 and .disc2-i386 into .../, I haven't change
them
I edit .../RedHat/base/comps and take out all the rpms that I'm not going to
install
I run genhdlist (/usr/lib/anaconda-runtime/genhdlist --withnumbers --hdlist
./RedHat/base/hdlist ./), I have only one CD, so I don't mentioned another
CD
Into ../RedHat/base/ I have no change the images file

After I make an iso image.

When I try to install from my CD, I have this error:

Traceback (innermost last):
  File "/usr/bin/anaconda", line 620, in ?
    intf.run(id, dispatch, configFileData)
  File "/usr/lib/anaconda/text.py", line 364, in run
    (step, args) = dispatch.currentStep()
  File "/usr/lib/anaconda/dispatch.py", line 243, in currentStep
    self.gotoNext()
  File "/usr/lib/anaconda/dispatch.py", line 143, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/dispatch.py", line 208, in moveStep
    rc = apply(func, self.bindArgs(args))
  File "/usr/lib/anaconda/packages.py", line 106, in readPackages
    id.comps = method.readComps(id.hdList)
  File "/usr/lib/anaconda/image.py", line 17, in readComps
    return ComponentSet(self.tree + '/RedHat/base/comps', hdlist)
  File "/usr/lib/anaconda/comps.py", line 795, in __init__
    self.readCompsFile(file, self.packages)
  File "/usr/lib/anaconda/comps.py", line 558, in readCompsFile
    self.expressions[packages[l]] = None
  File "/usr/lib/anaconda/comps.py", line 152, in __getitem__
    return self.packages[item]
KeyError: dia

Local variables in innermost frame:
self: <comps.HeaderListFromFile instance at 856ee00>
item: dia

I don't understand why

If I don't use genhdlist (I copy the hdlist and hdlist2 from the CD to
.../RedHat/base), I could install my CD, but I must reintroduce it during
the installation because it asks for the second CD (or I have only one CD,
which contain all the packages)

Thanks





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]