I have a ubuntu 22.04 server running on AWS. A while ago there was an automatic kernel update which caused the server to crash and it was a nightmare since it was headless (aws).
Since then I manually reverted the kernel back to Linux 5.4.0-1018-aws
using the instructions here (https://discourse.ubuntu.com/t/how-to-downgrade-the-kernel-on-ubuntu-20-04-to-the-5-4-lts-version/26459) and it has never updated the kernel since (I don't know if I did something, I don't see anything in 50unattended-upgrades
in the blacklisted section). That's exactly what I wanted, I don't want it to upgrade the kernel but it is updating everything else (using unattended upgrades). That's the perfect scenario.
Recently I manually updated the kernel to Linux 6.2.0-1009-aws
and everything is working great. Now I want to ensure that it doesn't upgrade the kernel anymore, however it does continue to upgrade all the other packages. I'm concerned that since I'm now on the latest aws kernel version it will also automatically update the aws kernel. My question is how do I check if the aws kernel is going to be updated and more importantly how do I set it to so that the aws kernel is never updated automatically unless I manually update it myself (but I do want the rest of packages to be updated)?