I need to slightly change the kernel(-rt) config and rebuild the RPMs.
That worked fine for Rocky 8 but I somehow fail to accomplish this with Rocky 9.
After I adapted the config, I can build the RPMs but the changes are not there.
What I did is the following (as non-root user)
Get and install the sources from
In the rpmbuild/SPECS/ directory I issue
rpmbuild -bp --target=$(uname -m) kernel.spec
which sets up the tree at
I copy over
cp configs/kernel-rt-5.14.0-x86_64.config .config
make oldconfig make menuconfig
Applying my changes, saving the config and adding
to the top of it, I copy it back to
Finally, in SPECS, building the RPMs with
rpmbuild -bb --with baseonly --clean --target=$(uname -m) kernel.spec 2> build-err.log | tee build-out.log
This finishes without build issues, but, as I said, when I install it, the config is just the standard one,
missing all my changes.
What’s the correct way of doing this?
Tried to follow the spec file and find out what’s wrong but I got lost.
Grateful for any help.
Thanks in advance.