Closed secretmango closed 1 year ago
It looks like the kernel package provides two kernels in a single RPM which confuses ostree/rpm-ostree.
Hi, its me.
Here are some new errors.
rpm-ostree override remove kernel kernel-core kernel-modules kernel-modules-extra --install kernel-hardened
rpm-md repo 'copr:copr.fedorainfracloud.org:samsepi0l:HardHatOS' (cached); generated: 2023-03-18T15:06:31Z solvables: 8
# all going well
Running pre scripts... done
Running post scripts... done
Running posttrans scripts... done
Writing rpmdb... done
error: Multiple kernels (vmlinuz) found in: usr/lib/modules: 6.1.20-hardened1-1-hardened 6.1.18-200.fc37.x86_64+debug
This is an rpm-ostree
problem; something similar - https://github.com/coreos/rpm-ostree/issues/3530
It probably would make sense to file an issue with the rpm-ostree
team
Listing the content of the offending package would help with debugging here:
$ rpm -qlp <package>.rpm
If there truly are multiple kernels in a package then rpm-ostree can not know which one to use. If there is indeed only one and the package is correct, then it's an rpm-ostree bug.
Here is the file, its veeeery long.
The only difference I can see is the usage of /usr/lib/modules
instead of /lib/modules
. Not sure if that's the root problem.
This indeed looks like an rpm-ostree bug. Please report it there and link the bug here.
Thanks.
I am using Fedora Kinoite. I want to replace the Kernel for the hardened one, along with hardened_malloc, which I have already successfully layered.
Describe the bug Even though I fixed all dependency issues, I get
error: Multiple kernels (vmlinuz) found in: usr/lib/modules: 6.1.8-hardened1-1-hardened 6.1.7-200.fc37.x86_64+debug
To Reproduce
sudo rpm-ostree override remove kernel kernel-core kernel-modules kernel-modules-extra --install kernel-hardened
OS version: