stut Posted March 6, 2020 Posted March 6, 2020 I been running my own images with great success thanks to rock solid build environment but one thing that catches me by surprise every now and then is that updating the system can also overwrite my custom kernel, which is is far from ideal. Up until now I been issuing an apt hold command for the packages but I was thinking maybe there is a better way. Because even with the hold in place if I don't pay close attention and do an apt dist-upgrade for example they will still be replaced despite the hold. Is there a better way to prevent my kernels from being updated by the stock kernel? Cheers!
Werner Posted March 6, 2020 Posted March 6, 2020 What may help is adding a custom version string in menuconfig when building the kernel package. 2
stut Posted March 7, 2020 Author Posted March 7, 2020 Ohh that's a very clever solution! Thank you very much
ning Posted March 9, 2020 Posted March 9, 2020 or just add SUBREVISION=.99999 to your build command line 1
Igor Posted March 9, 2020 Posted March 9, 2020 31 minutes ago, ning said: or just add SUBREVISION=.99999 to your build command line That will be good enough until we bump to 20.08
stut Posted March 11, 2020 Author Posted March 11, 2020 On 3/9/2020 at 3:40 PM, ning said: or just add SUBREVISION=.99999 to your build command line Will try, thanks for the suggestion. On 3/9/2020 at 4:13 PM, Igor said: That will be good enough until we bump to 20.08 What would the best way to prevent these kernel upgrades from ever happening? If that's possible of course.
Igor Posted March 11, 2020 Posted March 11, 2020 (edited) 17 minutes ago, stut said: What would the best way to prevent these kernel upgrades from ever happening? If that's possible of course. By patching packaging patches or best, implement this as a feature to the build engine. Edited March 11, 2020 by Igor link to wrong word
stut Posted March 11, 2020 Author Posted March 11, 2020 Setting the sub-revision seems to have sorted it, but it may be too early to tell as I just build this fresh image. For now looking good, thanks for the pointers everyone.
Recommended Posts