Re: Pkgorder of x86_64 RHEL 4.2 on i386 RHEL 4.2

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

 



Pierzycki, Chris (GE Healthcare, consultant) wrote:
Traceback (most recent call last):
  File "/usr/lib/anaconda-runtime/pkgorder", line 209, in ?
    pkgOrder.append(hdlist[package].nevra())
  File "/usr/lib/anaconda/hdrlist.py", line 422, in __getitem__
    raise KeyError, "No such package %s" %(item,)
KeyError: 'No such package kernel-smp'

The following is the script I am using

export PYTHONPATH=/usr/lib/anaconda
export PATH=$PATH:/usr/lib/anaconda-runtime

genhdlist $1 # Full path required
pkgorder $1 x86_64 > /tmp/pkgorder.txt
genhdlist --fileorder /tmp/pkgorder.txt $DIST

Our installer runs AS-3_i386 - you need to trick genhdlist  ;)

Kind Regards,
Michael

=====

michael@ares: ~ $ cat /mnt/kickstart/redhat/rhas-4-64/RedHat/base/make_comps.sh
#!/bin/sh

# This file should be put into /kickstart/<distro>/RedHat/base
# and be run on the kickstart server whenever we make a change
# to the RPM pool

name=$(cd ../../;pwd)

# run genhdlist
echo "Running genhdlist..."

# to build x86_64 tree, we need to trick genhdlist and pkgorder
echo x86_64-redhat-linux > /etc/rpm/platform

/usr/lib/anaconda-runtime/genhdlist --withnumbers $name
export PYTHONPATH=/usr/lib/anaconda
/usr/lib/anaconda-runtime/pkgorder $name i386 | /exports/tools/pkgorder_fix.pl $name > $name/RedHat/base/filelist /usr/lib/anaconda-runtime/genhdlist --withnumbers --fileorder $name/RedHat/base/filelist $name

# set back the correct /etc/rpm/platform
echo i686-redhat-linux > /etc/rpm/platform

echo "Done."


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux