Skip to content

Commit

Permalink
fix: link dnf to rpm-ostree when installing kmods
Browse files Browse the repository at this point in the history
  • Loading branch information
maximmaxim345 committed Dec 20, 2023
1 parent 1b1bd63 commit 6a52667
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/scripts/build-kmods.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
RELEASE="$(rpm -E '%fedora')"

# We will link dnf to rpm-ostree for correct installation
ln -s /usr/bin/rpm-ostree /usr/bin/dnf

akmods --force --kernels "${KERNEL}" --kmod acpi_ec
modinfo /usr/lib/modules/${KERNEL}/extra/acpi_ec/acpi_ec.ko.xz >/dev/null ||
(find /var/cache/akmods/acpi_ec/ -name \*.log -print -exec cat {} \; && exit 1)

# Remove the link to rpm-ostree
rm -f /usr/bin/dnf

0 comments on commit 6a52667

Please sign in to comment.