[Fedora-livecd-list] Kadischi error
Darko Ilic
darko.ilic at gmail.com
Thu Oct 13 17:34:54 UTC 2005
On Thursday 13 October 2005 18:44, Greg DeKoenigsberg wrote:
> system itself via yum. I tried running against two different kernels.
>
> Note: I did build a new kernel on this box, though I never actually ran
> it. Could building the kernel have changed some things that Kadischi
> assumes will be present by default?
No, it shouldn't have anything to do with the kernel on the parent system.
> And would it help if I gave you the contents of rpm.TransactionSet
> (rootdir) when I get this error?
Hm, we can try, but I think ts object is just the interface to the rpm
database.
I think it would help if you could edit /usr/share/kadischi/lib/functions.py,
replace get_kernel_version function with the following:
def get_kernel_version (rootdir):
"""Returns kernel version that is installed on the destination system"""
kernel_version = None
clear_rpm_db_files (rootdir)
ts = rpm.TransactionSet (rootdir)
mi = ts.dbMatch ()
for hdr in mi:
print "%s-%s-%s" % (hdr['name'], hdr['version'], hdr['release'])
for mi in ts.dbMatch ('name', 'kernel'):
kernel_version = "%s-%s" % (mi['version'], mi['release'])
clear_rpm_db_files (rootdir)
return kernel_version
And then send me the output. Kadischi will fail again, with the same error
message, but it will print the list of packages that are present in the rpm
database.
--
Darko
More information about the Fedora-livecd-list
mailing list