-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Description
I attempted a manual compilation and install of the akmods kernel module nct6687d by Fred78290. I managed to complete the sudo make akmod/build process, but applying rpm-ostree install on the resulting rpms fails in %post, with logs stating the following:
Building /usr/src/akmods/nct6687d-kmod-1.0.155-git2f40c7e.src.rpm for kernel 6.17.12-300.fc43.x86_64
ERROR: Files needed for building modules against kernel
6.17.12-300.fc43.x86_64 could not be found as the following
directories are missing:
/usr/src/kernels/6.17.12-300.fc43.x86_64/
/usr/lib/modules/6.17.12-300.fc43.x86_64/build/
%post, as I understand it, is a script that finishes up the akmods installation. It also seems to run after rpm-ostree has switched back its focus to the currently deployed kernel 6.17.7-ba22.fc43.x86_64, leaving the %post script to look for paths related to the newly created kernel 6.17.12-300.fc43.x86_64 and failing to do so. At least this is my best guess, but I am hoping that someone knows more and can suggest a solution.
Similar issues
This issue seems to be related to a possible persistent unsolved bug, for which issues gets closed after addressing resulting errors but before solving the root cause. I have tried the fixes that I have run into during my research, but none of these have been successful for handling my error so far.
fedora-silverblue/issue-tracker#286 & coreos/rpm-ostree#3706 & https://bugzilla.rpmfusion.org/show_bug.cgi?id=6317
This issue almost perfectly matches my experience, with the installation of the module failing in %post, and with logs stating that some files were not available. It is also the most comprehensive report and discussion on the topic that I could find. In the report the author shows that it was possible to avoid the error by blocking threads on the cpu before running the installation. This did induce a new unwanted effect, as cores then needed to be blocked for installations that otherwise did not need this before.
In the discussion, the issue seemed to change during updates for some participants, and for some version of this family of errors, in which the logs stated that too many files were open at once, rather than throwing an error based on file access, it was found in this comment, that using systemctl edit to set LimitNOFILE=65535 for rpm-ostreed.service solved the error.
fedora-silverblue/issue-tracker#664
This report show something similar, adding DefaultLimitNOFILE=16384 to the system config file, solving the error.
https://discussion.fedoraproject.org/t/rpm-ostree-compose-including-akmods-rpm/84624/2
This report solved a similar issue by rearranging dependency statements from ./fedora/nct6687d-kmod.spec to ./fedora/nct6687d.spec:
Others:
fedora-silverblue/issue-tracker#106
Steps to reproduce:
- rpm-ostree reset
- systemctl restart
- rpm-ostree install make automake gcc gcc-c++ kernel-devel kernel-headers dkms --allow-inactive
- systemctl restart
- rpm-ostree install rpmdevtools kmodtool
- systemctl restart
- git clone https://github.com/Fred78290/nct6687d.git
- cd nct6687
- nano Makefile # Comment out any dnf-related lines:
$cat Makefile
obj-m += nct6687.o
curpwd := $(shell pwd)
kver ?= $(shell uname -r)
commitcount := $(shell git rev-list --all --count 2>/dev/null)
commithash := $(shell git rev-parse --short HEAD 2>/dev/null)
fedoraver := $(shell sed -n 's/.*Fedora release \([^ ]*\).*/\1/p' /etc/fedora-release 2>/dev/null || echo 0)
build:
rm -rf ${curpwd}/${kver}
mkdir -p ${curpwd}/${kver}
cp ${curpwd}/Makefile ${curpwd}/nct6687.c ${curpwd}/${kver}
cd ${curpwd}/${kver}
make -C /lib/modules/${kver}/build M=${curpwd}/${kver} modules
install: build
sudo cp ${curpwd}/${kver}/nct6687.ko /lib/modules/${kver}/kernel/drivers/hwmon/
sudo depmod
sudo modprobe nct6687
clean:
[ -d "${curpwd}/${kver}" ] && make -C /lib/modules/${kver}/build M=${curpwd}/${kver} clean
# Dependencies rpmdevtools kmodtool
akmod/build:
# @if [ $(fedoraver) -gt 40 ]; then \
# echo "Fedora version $(fedoraver) is greater than 40, using dnf5 command"; \
# sudo dnf install -y @development-tools; \
# else \
# sudo dnf groupinstall -y "Development Tools"; \
# fi
# sudo dnf install -y rpmdevtools kmodtool
mkdir -p ${curpwd}/.tmp/nct6687d-1.0.${commitcount}/nct6687d
cp LICENSE Makefile nct6687.c ${curpwd}/.tmp/nct6687d-1.0.${commitcount}/nct6687d
cd .tmp && tar -czvf nct6687d-1.0.${commitcount}.tar.gz nct6687d-1.0.${commitcount} && cd -
mkdir -p ${curpwd}/.tmp/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
cp ${curpwd}/.tmp/nct6687d-1.0.${commitcount}.tar.gz ${curpwd}/.tmp/rpmbuild/SOURCES/
echo 'nct6687' | tee ${curpwd}/.tmp/rpmbuild/SOURCES/nct6687.conf
cp fedora/*.spec ${curpwd}/.tmp/rpmbuild/SPECS/
sed -i "s/MAKEFILE_PKGVER/${commitcount}/g" ${curpwd}/.tmp/rpmbuild/SPECS/*
sed -i "s/MAKEFILE_COMMITHASH/${commithash}/g" ${curpwd}/.tmp/rpmbuild/SPECS/*
rpmbuild -ba --define "_topdir ${curpwd}/.tmp/rpmbuild" ${curpwd}/.tmp/rpmbuild/SPECS/nct6687d.spec
rpmbuild -ba --define "_topdir ${curpwd}/.tmp/rpmbuild" ${curpwd}/.tmp/rpmbuild/SPECS/nct6687d-kmod.spec
akmod/install: akmod/build
# dnf install ${curpwd}/.tmp/rpmbuild/RPMS/*/*.rpm
akmod/clean:
# sudo dnf remove nct6687d
rm -rf .tmp
akmod: akmod/install
dkms/build:
make -C /lib/modules/${kver}/build M=${curpwd} modules
dkms/install:
rm -rf ${curpwd}/dkms
mkdir -p ${curpwd}/dkms
cp ${curpwd}/dkms.conf ${curpwd}/Makefile ${curpwd}/nct6687.c ${curpwd}/dkms
sudo rm -rf /usr/src/nct6687d-1
sudo cp -rT dkms /usr/src/nct6687d-1
sudo dkms install nct6687d/1
sudo modprobe nct6687
dkms/clean:
sudo dkms remove nct6687d/1 --all
make -C /lib/modules/${kver}/build M=${curpwd} clean
debian/changelog: FORCE
git --no-pager log \
--format='nct6687d-dkms (%ad) unstable; urgency=low%n%n * %s%n%n -- %aN <%aE> %aD%n' \
--date='format:%Y%m%d-%H%M%S' \
> $@
deb: debian/changelog
sudo apt install -y debhelper dkms
@if apt-cache show dh-dkms > /dev/null 2>&1; then \
sudo apt-get install -y dh-dkms; \
fi
dpkg-buildpackage -b -rfakeroot -us -uc
.PHONY: FORCE
FORCE:
- run
sudo make akmod/buildto produce rpm-files for the module.
$sudo make akmod/build
[sudo] password for USER:
mkdir -p /var/home/USER/git/nct6687d/.tmp/nct6687d-1.0.155/nct6687d
cp LICENSE Makefile nct6687.c /var/home/USER/git/nct6687d/.tmp/nct6687d-1.0.155/nct6687d
cd .tmp && tar -czvf nct6687d-1.0.155.tar.gz nct6687d-1.0.155 && cd -
nct6687d-1.0.155/
nct6687d-1.0.155/nct6687d/
nct6687d-1.0.155/nct6687d/LICENSE
nct6687d-1.0.155/nct6687d/Makefile
nct6687d-1.0.155/nct6687d/nct6687.c
/var/home/USER/git/nct6687d
mkdir -p /var/home/USER/git/nct6687d/.tmp/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
cp /var/home/USER/git/nct6687d/.tmp/nct6687d-1.0.155.tar.gz /var/home/USER/git/nct6687d/.tmp/rpmbuild/SOURCES/
echo 'nct6687' | tee /var/home/USER/git/nct6687d/.tmp/rpmbuild/SOURCES/nct6687.conf
nct6687
cp fedora/*.spec /var/home/USER/git/nct6687d/.tmp/rpmbuild/SPECS/
sed -i "s/MAKEFILE_PKGVER/155/g" /var/home/USER/git/nct6687d/.tmp/rpmbuild/SPECS/*
sed -i "s/MAKEFILE_COMMITHASH/2f40c7e/g" /var/home/USER/git/nct6687d/.tmp/rpmbuild/SPECS/*
rpmbuild -ba --define "_topdir /var/home/USER/git/nct6687d/.tmp/rpmbuild" /var/home/USER/git/nct6687d/.tmp/rpmbuild/SPECS/nct6687d.spec
Building target platforms: noarch
Building for target noarch
setting SOURCE_DATE_EPOCH=1672790400
Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.ry9qj3
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.JzEb6C
+ umask 022
+ cd /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.1CVxO4
+ umask 022
+ cd /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.DpeacM
+ umask 022
+ cd /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build
+ '[' /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build/BUILDROOT '!=' / ']'
+ rm -rf /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build/BUILDROOT
++ dirname /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build/BUILDROOT
+ mkdir -p /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build
+ mkdir /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build/BUILDROOT
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ install -D -m 0644 /var/home/USER/git/nct6687d/.tmp/rpmbuild/SOURCES/nct6687.conf /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build/BUILDROOT/usr/lib/modules-load.d/nct6687.conf
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
+ /usr/lib/rpm/brp-remove-la-files
+ /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo
+ env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j16
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/bin/add-determinism --brp -j16 /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build/BUILDROOT
Scanned 4 directories and 1 files,
processed 0 inodes,
0 modified (0 replaced + 0 rewritten),
0 unsupported format, 0 errors
Processing files: nct6687d-1.0.155-git2f40c7e.noarch
Provides: nct6687d = 1.0.155-git2f40c7e nct6687d-kmod-common = 1.0.155-git2f40c7e
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build/BUILDROOT
Wrote: /var/home/USER/git/nct6687d/.tmp/rpmbuild/SRPMS/nct6687d-1.0.155-git2f40c7e.src.rpm
Wrote: /var/home/USER/git/nct6687d/.tmp/rpmbuild/RPMS/noarch/nct6687d-1.0.155-git2f40c7e.noarch.rpm
Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.hf2fAp
+ umask 022
+ cd /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build
+ test -d /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build
+ rm -rf /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-1.0.155-build
+ RPM_EC=0
++ jobs -p
+ exit 0
rpmbuild -ba --define "_topdir /var/home/USER/git/nct6687d/.tmp/rpmbuild" /var/home/USER/git/nct6687d/.tmp/rpmbuild/SPECS/nct6687d-kmod.spec
setting SOURCE_DATE_EPOCH=1672790400
Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.b2IQFR
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.M8kShX
+ umask 022
+ cd /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build
+ kmodtool --target x86_64 --kmodname nct6687d --akmod
%{?rhel:%global with_rhel_kabi 1}
%if 0%{?rhel} || 0%{?fedora}
%global kmod_pkg_name kmod-nct6687d
%global pkg_kmod_name nct6687d-kmod
%{?obsolete_name:%global kmod_obsolete_name kmod-%{obsolete_name}}
%endif
%global akmod_install mkdir -p $RPM_BUILD_ROOT/%{_usrsrc}/akmods/; \rpmbuild --define "_sourcedir %{_sourcedir}" \--define "_srcrpmdir $RPM_BUILD_ROOT/%{_usrsrc}/akmods/" \%{?dist:--define 'dist %{dist}}' \-bs --nodeps %{_specdir}/%{name}.spec ; \ln -s $(ls $RPM_BUILD_ROOT/%{_usrsrc}/akmods/) $RPM_BUILD_ROOT/%{_usrsrc}/akmods/%{pkg_kmod_name}.latest
%package -n akmod-nct6687d
Summary: Akmod package for nct6687d kernel module(s)
Requires: kmodtool
Requires: akmods
%{?AkmodsBuildRequires:Requires: %{AkmodsBuildRequires}}
# same requires and provides as a kmods package would have
Requires: %{pkg_kmod_name}-common >= %{?epoch:%{epoch}:}%{version}
Provides: %{pkg_kmod_name} = %{?epoch:%{epoch}:}%{version}-%{release}
%description -n akmod-nct6687d
This package provides the akmod package for the nct6687d kernel modules.
%posttrans -n akmod-nct6687d
nohup /usr/sbin/akmods --from-akmod-posttrans --akmod nct6687d &> /dev/null &
%post -n akmod-nct6687d
[ -x /usr/sbin/akmods-ostree-post ] && /usr/sbin/akmods-ostree-post nct6687d %{_usrsrc}/akmods/%{pkg_kmod_name}-%{version}-%{release}.src.rpm
%files -n akmod-nct6687d
%defattr(-,root,root,-)
%{_usrsrc}/akmods/*
%package -n %{kmod_pkg_name}
Summary: Metapackage which tracks in nct6687d kernel module for newest kernel
Provides: %{pkg_kmod_name} = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{kmod_pkg_name}-xen = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{kmod_pkg_name}-smp = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{kmod_pkg_name}-PAE = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: akmod-nct6687d = %{?epoch:%{epoch}:}%{version}-%{release}
%description -n %{kmod_pkg_name}
This is a meta-package without payload which sole purpose is to require the
nct6687d kernel module(s) for the newest kernel,
to make sure you get it together with a new kernel.
%files -n %{kmod_pkg_name}
%defattr(644,root,root,755)
+ cd /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build
+ rm -rf nct6687d-1.0.155
+ /usr/lib/rpm/rpmuncompress -x /var/home/USER/git/nct6687d/.tmp/rpmbuild/SOURCES/nct6687d-1.0.155.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nct6687d-1.0.155
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Z6BdpR
+ umask 022
+ cd /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd nct6687d-1.0.155
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.NVl1QD
+ umask 022
+ cd /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build
+ '[' /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build/BUILDROOT '!=' / ']'
+ rm -rf /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build/BUILDROOT
++ dirname /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build/BUILDROOT
+ mkdir -p /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build
+ mkdir /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build/BUILDROOT
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd nct6687d-1.0.155
+ mkdir -p /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build/BUILDROOT//usr/src/akmods/
+ rpmbuild --define '_sourcedir /var/home/USER/git/nct6687d/.tmp/rpmbuild/SOURCES' --define '_srcrpmdir /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build/BUILDROOT//usr/src/akmods/' --define 'dist .fc43' -bs --nodeps /var/home/USER/git/nct6687d/.tmp/rpmbuild/SPECS/nct6687d-kmod.spec
Wrote: /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build/BUILDROOT/usr/src/akmods/nct6687d-kmod-1.0.155-git2f40c7e.src.rpm
++ ls /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build/BUILDROOT//usr/src/akmods/
+ ln -s nct6687d-kmod-1.0.155-git2f40c7e.src.rpm /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build/BUILDROOT//usr/src/akmods/nct6687d-kmod.latest
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
+ /usr/lib/rpm/brp-remove-la-files
+ /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo
+ env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j16
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/bin/add-determinism --brp -j16 /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build/BUILDROOT
Scanned 4 directories and 2 files,
processed 0 inodes,
0 modified (0 replaced + 0 rewritten),
0 unsupported format, 0 errors
Reading /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build/SPECPARTS/rpm-debuginfo.specpart
Processing files: akmod-nct6687d-1.0.155-git2f40c7e.x86_64
Provides: akmod-nct6687d = 1.0.155-git2f40c7e akmod-nct6687d(x86-64) = 1.0.155-git2f40c7e nct6687d-kmod = 1.0.155-git2f40c7e
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(posttrans): /bin/sh
Processing files: kmod-nct6687d-1.0.155-git2f40c7e.x86_64
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build/BUILDROOT
Wrote: /var/home/USER/git/nct6687d/.tmp/rpmbuild/SRPMS/nct6687d-kmod-1.0.155-git2f40c7e.src.rpm
Wrote: /var/home/USER/git/nct6687d/.tmp/rpmbuild/RPMS/x86_64/kmod-nct6687d-1.0.155-git2f40c7e.x86_64.rpm
Wrote: /var/home/USER/git/nct6687d/.tmp/rpmbuild/RPMS/x86_64/akmod-nct6687d-1.0.155-git2f40c7e.x86_64.rpm
Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.Z89TkF
+ umask 022
+ cd /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build
+ test -d /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build
+ rm -rf /var/home/USER/git/nct6687d/.tmp/rpmbuild/BUILD/nct6687d-kmod-1.0.155-build
+ RPM_EC=0
++ jobs -p
+ exit 0
- run
rpm-ostree installon all interdependent rpm files for the akmods module, and get the error:
$ rpm-ostree install ./.tmp/rpmbuild/RPMS/*/*.rpm
Inactive requests:
gcc (already provided by gcc-15.2.1-5.fc43.x86_64)
kernel-devel (already provided by kernel-devel-6.17.7-ba22.fc43.x86_64)
make (already provided by make-1:4.4.1-11.fc43.x86_64)
kernel-headers (already provided by kernel-headers-6.17.4-300.fc43.x86_64)
gcc-c++ (already provided by gcc-c++-15.2.1-5.fc43.x86_64)
Checking out tree 10b1987... done
Enabled rpm-md repositories: updates fedora terra-mesa terra terra-source updates-archive
Importing rpm-md... done
rpm-md repo 'updates' (cached); generated: 2026-01-11T01:06:45Z solvables: 19121
rpm-md repo 'fedora' (cached); generated: 2025-10-23T03:37:20Z solvables: 77664
rpm-md repo 'terra-mesa' (cached); generated: 2025-12-29T14:51:50Z solvables: 105
rpm-md repo 'terra' (cached); generated: 2026-01-11T15:34:13Z solvables: 3281
rpm-md repo 'terra-source' (cached); generated: 2026-01-11T15:34:21Z solvables: 618
rpm-md repo 'updates-archive' (cached); generated: 2026-01-11T02:36:07Z solvables: 23432
Resolving dependencies... done
Will download: 2 packages (64.8 kB)
Downloading from 'updates'... done
Downloading from 'fedora'... done
Importing packages... done
Relabeling... done
Checking out packages... done
Running systemd-sysusers... done
Running pre scripts... done
Running post scripts... done
error: Running %post for akmod-nct6687d: bwrap(/bin/sh): Child process exited with code 1; run `journalctl -t 'rpm-ostree(akmod-nct6687d.post)'` for more information
- find the log entries for rpm-ostree related to the post-script
$journalctl -t 'rpm-ostree(akmod-nct6687d.post)'
Jan 03 06:08:44 bazzite rpm-ostree(akmod-nct6687d.post)[7216]: Building /usr/src/akmods/nct6687d-kmod-1.0.155-git2f40c7e.src.rpm for kernel 6.17.12-300.fc43.>
Jan 03 06:08:44 bazzite rpm-ostree(akmod-nct6687d.post)[7221]: ERROR: Files needed for building modules against kernel
Jan 03 06:08:44 bazzite rpm-ostree(akmod-nct6687d.post)[7221]: 6.17.12-300.fc43.x86_64 could not be found as the following
Jan 03 06:08:44 bazzite rpm-ostree(akmod-nct6687d.post)[7221]: directories are missing:
Jan 03 06:08:44 bazzite rpm-ostree(akmod-nct6687d.post)[7221]: /usr/src/kernels/6.17.12-300.fc43.x86_64/
Jan 03 06:08:44 bazzite rpm-ostree(akmod-nct6687d.post)[7221]: /usr/lib/modules/6.17.12-300.fc43.x86_64/build/
More detailed output from journalctl:
$ journalctl | tail -60 # I then copied all successive lines related to rpm-ostree
Jan 12 02:10:35 bazzite rpm-ostree[14861]: Loaded sysroot
Jan 12 02:10:35 bazzite rpm-ostree[14861]: Locked sysroot
Jan 12 02:10:35 bazzite rpm-ostree[14861]: Initiated txn UpdateDeployment for client(id:cli dbus:1.229 unit:ptyxis-spawn-0ffaa1e1-99ce-496f-a42b-7a943267e9a2.scope uid:1000): /org/projectatomic/rpmostree1/default
Jan 12 02:10:35 bazzite rpm-ostree[14861]: Process [pid: 14851 uid: 1000 unit: [user@1000.service](mailto:user@1000.service)] connected to transaction progress
Jan 12 02:10:35 bazzite rpm-ostree[14861]: Starting syncfs for system repo
Jan 12 02:10:35 bazzite rpm-ostree[14861]: Completed syncfs() for system repo in 1 ms
Jan 12 02:10:35 bazzite rpm-ostree[14861]: Starting syncfs for system repo
Jan 12 02:10:35 bazzite rpm-ostree[14861]: Completed syncfs() for system repo in 2 ms
Jan 12 02:10:35 bazzite rpm-ostree[14861]: Librepo version: 1.20.0 with CURL_GLOBAL_ACK_EINTR support (libcurl/8.15.0 OpenSSL/3.5.4 zlib/1.3.1.zlib-ng libidn2/2.3.8 nghttp2/1.66.0)
Jan 12 02:10:39 bazzite rpm-ostree[14861]: Downloading: https://mirrors.fedoraproject.org/metalink?repo=updates-released-f43&arch=x86_64
Jan 12 02:10:40 bazzite rpm-ostree[14861]: Downloading: https://tetsudou.fyralabs.com/metalink?repo=terra43-mesa&arch=x86_64
Jan 12 02:10:40 bazzite rpm-ostree[14861]: Downloading: https://tetsudou.fyralabs.com/metalink?repo=terra43&arch=x86_64
Jan 12 02:10:40 bazzite rpm-ostree[14861]: Downloading: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-terra43
Jan 12 02:10:40 bazzite rpm-ostree[14861]: Downloading: https://tetsudou.fyralabs.com/metalink?repo=terra43&arch=x86_64
Jan 12 02:10:40 bazzite rpm-ostree[14861]: Downloading: https://fyra.sakamoto.pl/terra43/repodata/repomd.xml
Jan 12 02:10:40 bazzite flatpak[5172]: [2:2:0112/021040.879965:ERROR:brave/components/p3a/star_randomness_points.cc:120] StarRandomnessPoints: no response body for randomness request, net error: ERR_HTTP_RESPONSE_CODE_FAILURE
Jan 12 02:10:40 bazzite rpm-ostree[14861]: Downloading: https://fyra.sakamoto.pl/terra43/repodata/repomd.xml.asc
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://fyra.sakamoto.pl/terra43/repodata/400a6306c5bb82270c20ddc810017d2c5b46d1c188c787bc55fa2a9d051670db-primary.xml.zck
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://fyra.sakamoto.pl/terra43/repodata/8626607c0faf46e38fb33ffdd8f66949536ceb7382c84eb081818e789fc8a286-appstream.xml.gz
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://fyra.sakamoto.pl/terra43/repodata/87e2eaa4f52e7441f159c49929ef7c865c3f8d12bec062471e9f85c9d90121a0-appstream-icons-64x64.tar.gz
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://fyra.sakamoto.pl/terra43/repodata/400a6306c5bb82270c20ddc810017d2c5b46d1c188c787bc55fa2a9d051670db-primary.xml.zck
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://fyra.sakamoto.pl/terra43/repodata/5258479e4b422d3a26443fbd5e5d5456bcf97d28d153cbf66f28ade11b5e1e3a-comps.xml.zck
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://tetsudou.fyralabs.com/metalink?repo=terra43-source&arch=x86_64
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-terra43-source
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://tetsudou.fyralabs.com/metalink?repo=terra43-source&arch=x86_64
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://fyra.sakamoto.pl/terra43-source/repodata/repomd.xml
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://fyra.sakamoto.pl/terra43-source/repodata/repomd.xml.asc
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://fyra.sakamoto.pl/terra43-source/repodata/58ae3499f100eb7261d6a580838639beac4daa0f6aa7d355734a93f1d93bdeb6-primary.xml.zck
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://fyra.sakamoto.pl/terra43-source/repodata/40ffc88242360eb18142919529c3779a6dd15d9f7f4c5c897bce63818d8f14ed-appstream.xml.gz
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://fyra.sakamoto.pl/terra43-source/repodata/b74bea69e7ef7fefb641f77a65d2f8207d4a7ba04d0d368aaf36d95da8be7cce-appstream-icons-64x64.tar.gz
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://fyra.sakamoto.pl/terra43-source/repodata/58ae3499f100eb7261d6a580838639beac4daa0f6aa7d355734a93f1d93bdeb6-primary.xml.zck
Jan 12 02:10:41 bazzite rpm-ostree[14861]: Downloading: https://fedoraproject-updates-archive.fedoraproject.org/fedora/43/x86_64/repodata/repomd.xml
Jan 12 02:10:42 bazzite rpm-ostree[14861]: Preparing pkg txn; enabled repos: ['updates', 'fedora', 'terra-mesa', 'terra', 'terra-source', 'updates-archive'] solvables: 124239
Jan 12 02:10:42 bazzite rpm-ostree[14861]: Starting syncfs for system repo
Jan 12 02:10:43 bazzite rpm-ostree[14861]: Completed syncfs() for system repo in 153 ms
Jan 12 02:10:43 bazzite rpm-ostree[14861]: Relabeled 0/3 pkgs
Jan 12 02:10:43 bazzite rpm-ostree[14970]: /usr/lib/sysusers.d/nm-openvpn-sysusers.conf:1: Conflict with earlier configuration for user 'nm-openvpn' in /usr/lib/sysusers.d/networkmanager-openvpn.conf:1, ignoring line.
Jan 12 02:10:43 bazzite rpm-ostree[14970]: Creating group 'akmods' with GID 956.
Jan 12 02:10:43 bazzite rpm-ostree[14970]: Creating user 'akmods' (User is used by akmods to build akmod packages) with UID 956 and GID 956.
Jan 12 02:10:43 bazzite rpm-ostree[14861]: Executed %post for grubby in 16 ms
Jan 12 02:10:43 bazzite rpm-ostree[14861]: Executed %post for fakeroot in 20 ms
Jan 12 02:10:43 bazzite rpm-ostree(akmods.post)[15030]: Created symlink '/etc/systemd/system/multi-user.target.wants/akmods.service' → '/usr/lib/systemd/system/akmods.service'.
Jan 12 02:10:43 bazzite rpm-ostree[14861]: Executed %post for akmods in 55 ms
Jan 12 02:10:43 bazzite rpm-ostree(akmod-nct6687d.post)[15056]: Building /usr/src/akmods/nct6687d-kmod-1.0.155-git2f40c7e.src.rpm for kernel 6.17.12-300.fc43.x86_64
Jan 12 02:10:43 bazzite rpm-ostree(akmod-nct6687d.post)[15063]: ERROR: Files needed for building modules against kernel
Jan 12 02:10:43 bazzite rpm-ostree(akmod-nct6687d.post)[15063]: 6.17.12-300.fc43.x86_64 could not be found as the following
Jan 12 02:10:43 bazzite rpm-ostree(akmod-nct6687d.post)[15063]: directories are missing:
Jan 12 02:10:43 bazzite rpm-ostree(akmod-nct6687d.post)[15063]: /usr/src/kernels/6.17.12-300.fc43.x86_64/
Jan 12 02:10:43 bazzite rpm-ostree(akmod-nct6687d.post)[15063]: /usr/lib/modules/6.17.12-300.fc43.x86_64/build/
Jan 12 02:10:43 bazzite rpm-ostree[14861]: Txn UpdateDeployment on /org/projectatomic/rpmostree1/default failed: Running %post for akmod-nct6687d: bwrap(/bin/sh): Child process exited with code 1; run journalctl -t 'rpm-ostree(akmod-nct6687d.post)' for more information
Jan 12 02:10:43 bazzite rpm-ostree[14861]: Unlocked sysroot
Jan 12 02:10:43 bazzite rpm-ostree[14861]: Process [pid: 14851 uid: 1000 unit: [user@1000.service](mailto:user@1000.service)] disconnected from transaction progress
Jan 12 02:10:43 bazzite rpm-ostree[14861]: client(id:cli dbus:1.229 unit:ptyxis-spawn-0ffaa1e1-99ce-496f-a42b-7a943267e9a2.scope uid:1000) vanished; remaining=0
Jan 12 02:10:43 bazzite rpm-ostree[14861]: In idle state; will auto-exit in 63 seconds
Thoughts on the error
The missing folders specified corresponds to the next kernel in the ostree 6.17.12-300.fc43.x86_64, whereas currently:
$ uname -r
6.17.7-ba22.fc43.x86_64
To me, this suggests that the error could arise from %post trying to finish up the akmods installation in the 6.17.12-300.fc43.x86_64 kernel after rpm-ostree having rebased back to the currently deployed kernel 6.17.7-ba22.fc43.x86_64, leaving %post looking for folders that it does not have access to anymore. Though, after having updated the issue with the more detailed version of journalctl, I am starting to doubt this hypothesis.
For one participant in previous discussions, the predominant suspicion was towards concurrency until their system updated and changed the error. They also listed a range of hypotheses after the error changed, including suspicions about archives being improperly extracted, as well as different versions of limits on the amount of files being permitted access to at once.
Update: I have noticed the following during rpm-ostree install I get these lines:
kernel-devel (already provided by kernel-devel-6.17.7-ba22.fc43.x86_64)
......
kernel-headers (already provided by kernel-headers-6.17.4-300.fc43.x86_64)
<KERNEL> is different for kernel-devel-<KERNEL> & kernel-headers-<KERNEL>, which I am guessing is an issue.
What I have tried so far:
Blocking CPU threads
I tried disabling my cpu threads, as described in fedora-silverblue/issue-tracker/issues/286.
First, I tried blocking half of them, validating this using htop. I then tried leaving only 4, then 2, and even only leaving 1 thread functionally available to the system, but it made no difference, and I still got the exact same error.
The method for disabling threads is explained in the previous issue:
Increasing LimitNOFILE for rpm-ostreed-service
For changing the service config I used the following:
$ sudo systemctl edit rpm-ostreed.service
# adding the following to the editable lines:
[SERVICE]
LimitNOFILE=65535
# CTRL-O for saving and CTRL-X for exiting.
# Then using the following commands to activate the change:
$ sudo systemctl daemon-reload
$ sudo systemctl restart rpm-ostreed.service
This did not change my outcome either.
Increasing DefaultLimitNOFILE for for system.conf & user.conf
I added DefaultLimitNOFILE=65535 to /etc/systemd/user.conf.d/custom.conf and /etc/systemd/system.conf.d/custom.conf and rebooted the system, but it did not resolve the error.
Adding karg acpi_enforce_resources=lax
I have tried
rpm-ostree karg --add acpi_enforce_resources=lax
No difference.
Install kernel-devel-<CURRENTKERNEL> along with rpms
I tried installing kernel-devel along with the rpm, to increase the likelihood that directories were properly installed in the new kernel, but it made no difference in output, but I had to use the --allow-inactive flag to avoid a conflict with the bazzate kernel installation of kernel-devel. I do not fully understand layering and what happens in these use-cases though, so I might be way off in terms of my logic for even trying this.
rpm-ostree install kernel-devel-$(uname -r) /var/home/USER/git/nct6687d/.tmp/rpmbuild/RPMS/*/*.rpm --allow-inactive
Install kernel-devel-<FUTUREKERNEL> along with kernel-devel and rpms
I also tried installing the future kernel-specific version of kernel-devel alongside kernel-devel and rpms, as I saw this suggested in another issue for fedora-silverblue.
rpm-ostree install kernel-devel-6.17.12-300.fc43.x86_64 kernel-devel /var/home/USER/git/nct6687d/.tmp/rpmbuild/RPMS/*/*.rpm --allow-inactive
Inactive requests:
kernel-devel (already provided by kernel-devel-6.17.7-ba22.fc43.x86_64)
Checking out tree 10b1987... done
Enabled rpm-md repositories: updates fedora terra-mesa terra terra-source updates-archive
Importing rpm-md... done
rpm-md repo 'updates' (cached); generated: 2026-01-03T00:38:10Z solvables: 17849
rpm-md repo 'fedora' (cached); generated: 2025-10-23T03:37:20Z solvables: 77664
rpm-md repo 'terra-mesa' (cached); generated: 2025-12-29T14:51:50Z solvables: 105
rpm-md repo 'terra' (cached); generated: 2026-01-04T02:39:52Z solvables: 3221
rpm-md repo 'terra-source' (cached); generated: 2026-01-04T02:39:54Z solvables: 595
rpm-md repo 'updates-archive' (cached); generated: 2026-01-04T01:09:20Z solvables: 20545
Resolving dependencies... done
error: Could not depsolve transaction; 1 problem detected:
Problem: conflicting requests
- cannot install both kernel-devel-6.17.12-300.fc43.x86_64 from updates and kernel-devel-6.17.7-ba22.fc43.x86_64 from @System
- cannot install both kernel-devel-6.17.12-300.fc43.x86_64 from updates-archive and kernel-devel-6.17.7-ba22.fc43.x86_64 from @System
This also happened without including kernel-devel, and replacing --allow-inactive with --force-replacefiles resulted in the errormessage: error: Non-local fileoverrides not implemented.
My pc
AMD Ryzen 9 9800x3d
MSI MPG EDGE B850 TI WiFi
Goodram 32 Gb
Crucial M.2 2 Tb
AMD RX6950XT
System info
Hardware info
AMD Ryzen 9 9800x3d
MSI MPG EDGE B850 TI WiFi
Goodram 32 Gb
Crucial M.2 2 Tb
AMD RX6950XT
OS version
$cat /etc/os-release
NAME="Bazzite"
VERSION="43.20260101.0 (Kinoite)"
RELEASE_TYPE=stable
ID=bazzite
ID_LIKE="fedora"
VERSION_ID=43
VERSION_CODENAME="Kinoite"
PRETTY_NAME="Bazzite"
ANSI_COLOR="0;38;2;138;43;226"
LOGO=bazzite-logo-icon
CPE_NAME="cpe:/o:universal-blue:bazzite:43"
DEFAULT_HOSTNAME="bazzite"
HOME_URL="https://bazzite.gg"
DOCUMENTATION_URL="https://docs.bazzite.gg"
SUPPORT_URL="https://discord.bazzite.gg"
BUG_REPORT_URL="https://github.com/ublue-os/bazzite/issues/"
SUPPORT_END=2026-12-02
VARIANT="Kinoite"
VARIANT_ID=bazzite
OSTREE_VERSION='43.20260101.0'
BUILD_ID="Stable (F43.20260101)"
BOOTLOADER_NAME="Bazzite Stable (F43.20260101)"
IMAGE_ID="bazzite-43.20260101"
rpm-ostree status
$rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite:stable
Digest: sha256:71a51c4faf8cec6401b8c99ab319d1e7705a77f2253817710093eb3b436132cd
Version: 43.20260101 (2026-01-02T00:07:13Z)
LayeredPackages: automake coolercontrol dkms kmodtool liquidctl rpmdevtools
ostree-image-signed:docker://ghcr.io/ublue-os/bazzite:stable
Digest: sha256:71a51c4faf8cec6401b8c99ab319d1e7705a77f2253817710093eb3b436132cd
Version: 43.20260101 (2026-01-02T00:07:13Z)
LayeredPackages: automake coolercontrol dkms kmodtool liquidctl rpmdevtools
ostree-image-signed:docker://ghcr.io/ublue-os/bazzite:stable
Digest: sha256:71a51c4faf8cec6401b8c99ab319d1e7705a77f2253817710093eb3b436132cd
Version: 43.20260101 (2026-01-02T00:07:13Z)
LayeredPackages: automake coolercontrol dkms liquidctl
Pinned: yes
ostree-image-signed:docker://ghcr.io/ublue-os/bazzite:stable
Digest: sha256:8025351cc625279fa8870ab22e40cdec0f6ffd825f195da4fb72310190537375
Version: 43.20251210.1 (2025-12-10T21:41:22Z)
Pinned: yes
Do I want to work on this issue?
I will try to the best of my abilities, but I am a novice for much of this. I definitely have a lot to learn about rpm-ostree, akmods, and about installing packages and modules in general. I also see this as a learning opportunity though, I am hoping that someone can provide a hint on how to move forward.
Please let me know if I should provide more information or if I can improve in any other way on my reporting of this error.