I think we can go with a simple catch all of linux-.* as in
https://salsa.debian.org/apt-team/apt/merge_requests/59
For explanation as to why this works: apt takes the listed patterns, then appends the kernel versions to it, and then anchors it. So, with linux-.* you end up with patterns:
"^linux-.*-5\.0\.0-11-generic$"; "^linux-.*-5\.0\.0-8-generic$";
This should catch all versioned linux packages, and should also catch all future ones, as long as they start with linux-
I think we can go with a simple catch all of linux-.* as in
https:/ /salsa. debian. org/apt- team/apt/ merge_requests/ 59
For explanation as to why this works: apt takes the listed patterns, then appends the kernel versions to it, and then anchors it. So, with linux-.* you end up with patterns:
"^linux- .*-5\.0\ .0-11-generic$ "; .*-5\.0\ .0-8-generic$ ";
"^linux-
This should catch all versioned linux packages, and should also catch all future ones, as long as they start with linux-