Yikes… I do not have a copy of my prior post, unfortunately. Well, let me try again.
You may already know where to find the RPM packages. Here is the URL Index of /releases/
Pick the version of your OS and go to …/clear/x86_64/os/Packages/. There you will find the linux-, linux-cpio-, linux-dev-, and linux-extra- packages. At the time, you were trying out the linux-current variant. This is now superseded by linux 6.0.2.
Prerequisites
First and most important, be sure your system is functional e.g. with a LTS kernel. The following command will install the latest LTS kernel (currently kernel-lts2021 and kernel-lts2021-dkms). The associated kernel-*-dkms bundle includes clr-ignore-mod-sig and dkms (must have).
sudo bundle-add kernel-lts kernel-lts-dkms
Set a timeout so able to select a kernel when booting into the OS.
sudo mkdir -p /etc/kernel
sudo tee "/etc/kernel/timeout" >/dev/null <<'EOF'
5
EOF
sudo clr-boot-manager update
Reboot and ensure that all is well. Then remove the bundle(s) associated with the kernel that you want to test. For example, kernel-native and kernel-native-dkms or kernel-native-current. The reason is to not mix a bundle installation with a RPM installation. Otherwise, swupd update may interfere with your testing of the kernel installed via RPM.
sudo bundle-remove kernel-native-dkms kernel-native
sudo bundle-remove kernel-native-current
sudo clr-boot-manager update
Install the package-utils bundle to get the rpm command. That completes the preparation.
sudo bundle-add package-utils
Kernel installation via rpm
You will need 4 packages. I’m choosing the native kernel for the demonstration. The version may differ depending on the OS release (…/clear/x86_64/os/Packages/).
linux-6.0.2-1201.x86_64.rpm
linux-cpio-6.0.2-1201.x86_64.rpm
linux-dev-6.0.2-1201.x86_64.rpm
linux-extra-6.0.2-1201.x86_64.rpm
Install the kernel. Also, run the clr-boot-manager command.
sudo rpm -Uvh --nodeps linux-*6.0.2-*.rpm
sudo clr-boot-manager update
That completes the kernel installation including header files. If you prefer, run the clr-boot-manager command to list the kernels and set the default kernel.
sudo clr-boot-manager list-kernels
sudo clr-boot-manager set-kernel ...
Removing the kernel via rpm
Finished testing? Reboot into the LTS kernel first before removing the kernel.
rpm -qa | grep linux
sudo rpm -e linux-dev linux-extra linux-cpio linux
sudo clr-boot-manager update
Author notes
I’d be back to finish this I need to update my NVIDIA driver. I’m running NVIDIA driver 510 which is not compatible with kernel 6.0.x.
I want to verify the clr-boot-manager command if it removes artifacts under the boot partition. Edit: It does not.