-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base-files: vkpurge: fix parameter expansion in list_kernels() #24298
Conversation
You need to change the version or revision or the template in order to get it rebuilt. |
Oh, right! Forgot. |
This fixes next-kernels from having too much string of their versions stripped. Next-kernel versions have the format "vmlinu[xz]-<ver>-next-<date>". Thus, the string was wrongly shortened to "<date>", instead of the correct "<ver>-next-<date>".
The Correct functionality requires that kernel names take the form |
there are no next-kernels in void, so what do you mean? |
I think this is more consistent even if official Void kernels don't ship with anything more than a single hyphen. Let's say a local package (or unpackaged kernel build) modifies LOCALVERSION to be
Running
and attempting to After the patch,
and |
The problem I found was that vkpurge listed my kernel with the -next- part stripped, and that string couldn't be used to remove the kernel with vkpurge.
In the script I saw that the files are matched against "vmlinu[xz]-*", with no mention of any other hyphens. So ${k##*-} seemed problematic, because it might expand to further hyphens that we don't know of. It simply seemed like an oversight to me.
Void doesn't currently prefix any kernels with anything, so this change doesn't affect "official" kernels, but it expands to manually installed kernels. Or is that not right?
|
Merging because this should have no change in behavior for current official Void kernels but, if anybody customizes the kernel LOCALVERSION, this should provide more consistent behavior. This almost certainly will not work with your strange "-next-" kernel because I doubt that |
Thanks!
|
This fixes next-kernels from having too much string of their versions
stripped.
Next-kernel versions have the format "vmlinu[xz]--next-".
Thus, the string was wrongly shortened to "", instead of the
correct "-next-".