diff --git a/microcode_ctl.spec b/microcode_ctl.spec index f7fbe16..7ee7179 100644 --- a/microcode_ctl.spec +++ b/microcode_ctl.spec @@ -409,9 +409,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?".