This is sort of along the lines of what I’d like to do. I’m a longtime (10 years plus) Debian/Arch user who gets tired of having a slew of kernels on the system and the associated requirement of rebooting after kernel upgrades and doing later system clean-up of unused kernels. Even though it’s considered unadvisable, I’ve “pinned” a certain LTS kernel version on my Arch system. So it doesn’t drag in any new kernel versions when I do system updates and I only get a new kernel when I explicitly stipulate that. And that’s the way I’d like to keep it. No need for reconfiguring boot menus and running grub update. Less hassle, in my view.
I keep a fairly close eye on GNU/Linux news and would be aware pretty quickly were any serious security flaws in the Linux kernel identified. And in that case, were my running kernel affected, I would definitely download a new kernel right away and reboot. But otherwise, I just want to stick with the same kernel and avoid the additional download time/bandwidth and associated system revisions.
And that’s how I found this thread. But after reading it over and doing some experimentation, it appears to me there is no way, when doing a full upgrade, of preventing the system from downloading latest kernel version and running associated updates. For example, I’ve just removed a bunch of old kernel versions and done xbps-pkgdb -m hold linux4.8. Yet, when I run xbps-install -Su the system wants to pull in a new version of the 4.11 kernel. Further, the system will not allow me to remove the 4.11 version that is currently installed, despite the fact that I am now running a 4.8 kernel and not the 4.11 one that remains on the system. So I seem to be sort of stuck with the situation of the system continuing to download new kernel versions, which then clutter up the system since I’m not using them, and requiring later manual intervention to remove them.
So, am I doing something wrong in my attempts at stopping the system from downloading new kernels? Or is there really no way, when doing a full system update, of preventing newer kernels from being dragged in? I realize what I’m wanting to do is at odds in some respects with the notion of system updating/upgrading, but it also seems to me sensible to have the ability to exempt certain limited portions of the system from updating/upgrading.
P.S. Related thread at Kernel Choice