Hi all,
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
~/rpmbuild/BUILD/kernel-5.14.0-70.26.1.rt21.98.el9_0
There, at
~rpmbuild/BUILD/kernel-5.14.0-70.26.1.rt21.98.el9_0/linux-5.14.0-70.26.1.rt21.98.el9.x86_64
I copy over
cp configs/kernel-rt-5.14.0-x86_64.config .config
and issue
make oldconfig
make menuconfig
Applying my changes, saving the config and adding
# x86_64
to the top of it, I copy it back to
configs/kernel-rt-5.14.0-x86_64.config
and
~rpmbuild/SOURCES/kernel-rt-x86_64.config
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.