-
Notifications
You must be signed in to change notification settings - Fork 98
Allow glob or regex kernel matching rather than substring #759
-
|
TL;DR: maybe allow My situation; I have a number of systems which perform tasks like building modules for other systems. In order to achieve this, the kernel sources for the target systems need to be installed and, on some distributions (eg: recent Debian), this also brings in the kernel images for the target systems. However, obviously these might not be bootable on the current system. I can set the desired kernel in If Suppose for example we had the following kernels installed in /boot: vmlinuz-6.12.32+bpo-amd64If I never wanted the current machine to boot any experimental kernels, and also exclude the This might end up a bit inelegant with globs, so regular expressions might be better - maybe if |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 7 replies
-
|
LOL; I just looked at the code... the comparison is already done using |
Beta Was this translation helpful? Give feedback.
All reactions
-
1
-
|
Just wanted to confirm; the loop over Just want to make sure you're covering the case where more than one kernel might match, and we want the most recent of the matching ones. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Yes, if you were to set the value to say, |
Beta Was this translation helpful? Give feedback.
All reactions
-
1
-
|
Reading the code again; I'm sure the |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Thank you; this is awesome. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
We should probably just pull the language from the These two version parameters are intended to be more or less equivalent. while we could mention regular expressions, the fact that one is interpreted by bash and the other by Perl may lead to confusion as there can be subtle differences. It may be best for people to discover for themselves that they can get more sophisticated than globbing. |
Beta Was this translation helpful? Give feedback.