Hi,
On 5/5/23 01:06, Michael Lipp wrote:
Just reading this list, so I may be stating something obvious:
Please note that on other systems (e.g. arch) the "/boot" is omitted, so it
would be nice if things worked with "/efi/..." as well.
I don't think this patch (or the code before) affects the location WRT
/boot/efi or just efi. Its taking the output from grubby which reads
kernel="/somelocation/XXXkernelname"
and now matching
kernel="/somelocation/XXXkernelname/somefilename"
Am 5. Mai 2023 02:46:07 MESZ schrieb Jeremy Linton <jeremy.linton(a)arm.com>:
> The default systemd-boot installed kernels on fedora end up in the form:
>
> /boot/efi/36b54597c46383/6.4.0-0.rc0.20230427git6e98b09da931.5.fc39.aarch64/linux
>
> Where the kernel version is a directory containing the kernel (linux)
> and the initrd. Thus _find_kernel_path_by release needs to be a bit less
> strict and allow some futher characters on the grubby (really bootctl)
> output.
>
> Signed-off-by: Jeremy Linton <jeremy.linton(a)arm.com>
> ---
> kdumpctl | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kdumpctl b/kdumpctl
> index 2c647d6..2dd1cb2 100755
> --- a/kdumpctl
> +++ b/kdumpctl
> @@ -1318,7 +1318,7 @@ _filter_grubby_kernel_str()
> _find_kernel_path_by_release()
> {
> local _release="$1" _grubby_kernel_str _kernel_path
> - _grubby_kernel_str=$(grubby --info ALL | grep
"^kernel=.*$_release\"$")
> + _grubby_kernel_str=$(grubby --info ALL | grep
"^kernel=.*$_release.*\"$")
> _kernel_path=$(_filter_grubby_kernel_str "$_grubby_kernel_str")
> if [[ -z $_kernel_path ]]; then
> ddebug "kernel $_release doesn't exist"
> --
> 2.40.1
> _______________________________________________
> kexec mailing list -- kexec(a)lists.fedoraproject.org
> To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
> Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.org
> Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue