microcode_ctl.spec: check for symvers.xz as well in %posttrans
Otherwise kernels that ship symvers.xz instead of symvers.gz won't get initramfs re-generated. * microcode_ctl.spec (%posttrans): Check for symvers.xz presence in addition to symvers.gz. Resolves: RHEL-59081 Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
This commit is contained in:
parent
ec7af6e702
commit
9899755577
@ -408,9 +408,13 @@ rpm -qa --qf "${qf}" ${pkgs} | sort -r -n -k'3,3' | {
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1609696
|
||||
# So, we check for symvers file inside /lib/modules.
|
||||
#
|
||||
# Also account for the fact that symvers compression has been
|
||||
# switched from gzip to xz on newer kernels.
|
||||
#
|
||||
# XXX: Not sure if this check is still needed, since we now
|
||||
# iterate over the rpm output.
|
||||
[ -e "/lib/modules/${kver_uname}/symvers.gz" ] || continue
|
||||
[ -e "/lib/modules/${kver_uname}/symvers.gz" -o \
|
||||
-e "/lib/modules/${kver_uname}/symvers.xz" ] || continue
|
||||
# Check that modules.dep for the kernel is present as well,
|
||||
# otherwise dracut complains with "/lib/modules/.../modules.dep
|
||||
# is missing. Did you run depmod?".
|
||||
|
Loading…
Reference in New Issue
Block a user