[Fedora-livecd-list] Kadischi error

Greg DeKoenigsberg gdk at redhat.com
Thu Oct 13 17:32:41 UTC 2005


Great.  I'll try to do that here in the next couple of hours.

--g

_____________________  ____________________________________________
  Greg DeKoenigsberg ] [ the future masters of technology will have
 Community Relations ] [ to be lighthearted and intelligent.  the
             Red Hat ] [ machine easily masters the grim and the 
                     ] [ dumb.  --mcluhan

On Thu, 13 Oct 2005, Darko Ilic wrote:

> 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
> 
> --
> Fedora-livecd-list mailing list
> Fedora-livecd-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-livecd-list
> 




More information about the Fedora-livecd-list mailing list