[PATCH] Use the rpm database to find packages installed by package payloads

Adam Williamson awilliam at redhat.com
Fri Jan 23 21:59:59 UTC 2015


On Fri, 2015-01-23 at 10:41 -0500, David Shea wrote:
> The previous PackagePayload implementations of kernelVersionList had 
> a problem in that they could miss kernels installed by packages not 
> named "kernel" (kernel-core, kernel-PAE, kernel-debug) and in that 
> there may be a difference between the package EVR and the version 
> derived from
> s/vmlinuz-// (because there's a +PAE or +debug in it or something).

I tested a hand re-diffed version of this with a few different images, 
re-using the /boot from an F20 install:

* 2015-01-23 Xfce 32-bit and 64-bit lives
* 2015-01-11 32-bit netinst

in all cases it worked as intended; initramfs is built for the newly 
installed kernel, the pre-existing f20 initramfs files are not rebuilt 
(confirmed with sha256sum). The 32-bit netinst test checks the kernel-
PAE-core / +PAE extension case, so that's good.

ACK from me - I think this is one of the best of the various 
approaches we came up with, and it seems to work.



-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net
http://www.happyassassin.net



More information about the anaconda-patches mailing list