stut Posted March 6, 2020 Share 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! Link to comment Share on other sites More sharing options...
Werner Posted March 6, 2020 Share Posted March 6, 2020 What may help is adding a custom version string in menuconfig when building the kernel package. 2 Link to comment Share on other sites More sharing options...
stut Posted March 7, 2020 Author Share Posted March 7, 2020 Ohh that's a very clever solution! Thank you very much Link to comment Share on other sites More sharing options...
stut Posted March 9, 2020 Author Share Posted March 9, 2020 Unfortunately it didn't work Link to comment Share on other sites More sharing options...
ning Posted March 9, 2020 Share Posted March 9, 2020 use a different package name or higher enough version Link to comment Share on other sites More sharing options...
ning Posted March 9, 2020 Share Posted March 9, 2020 or just add SUBREVISION=.99999 to your build command line 1 Link to comment Share on other sites More sharing options...
Igor Posted March 9, 2020 Share 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 Link to comment Share on other sites More sharing options...
stut Posted March 11, 2020 Author Share 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. Link to comment Share on other sites More sharing options...
Igor Posted March 11, 2020 Share 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 Link to comment Share on other sites More sharing options...
stut Posted March 11, 2020 Author Share 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. Link to comment Share on other sites More sharing options...
ning Posted March 11, 2020 Share Posted March 11, 2020 the simplest way: remove armbian software repo. 1 Link to comment Share on other sites More sharing options...
Recommended Posts