From 572164820d686359077bed81fbfa2bd39c21da3f Mon Sep 17 00:00:00 2001 From: Nicolas ViƩville Date: Nov 20 2019 14:11:36 +0000 Subject: Check kernel presence differently for systemd-boot machines - rhbz#1769144 --- diff --git a/akmods b/akmods index e5b5256..d1a9ee2 100644 --- a/akmods +++ b/akmods @@ -472,7 +472,7 @@ while [ "${1}" ] ; do echo "Are the development files for kernel ${1} or the appropriate kernel-devel package installed?" exit 1 elif [[ -r /usr/src/kernels/"${1}"/Makefile ]] && \ - [[ ! -r /boot/vmlinuz-"${1}" ]] ; then + [[ ! -d /lib/modules/"${1}" ]] ; then # this is a red hat / fedora kernel-devel package, but the kernel for it is not installed # kmodtool would add a dep on that kernel when building; thus when we'd try to install the # rpms we'd run into a missing-dep problem. Thus we prevent that case diff --git a/akmods.spec b/akmods.spec index e9c5daf..4bb425b 100644 --- a/akmods.spec +++ b/akmods.spec @@ -1,6 +1,6 @@ Name: akmods Version: 0.5.6 -Release: 23%{?dist} +Release: 24%{?dist} Summary: Automatic kmods build and install tool License: MIT @@ -195,6 +195,9 @@ fi %changelog +* Wed Nov 20 2019 Nicolas ViƩville - 0.5.6-24 +- Check kernel presence differently for systemd-boot machines - rhbz#1769144 + * Wed Oct 16 2019 Leigh Scott - 0.5.6-23 - Add requires kernel-abi-whitelists for RHEL