Hi,
On Mon, 20 Feb 2023 16:26:44 +0800
Lichen Liu <lichliu(a)redhat.com> wrote:
On Fri, Feb 17, 2023 at 7:32 PM Michael Lipp <mnl(a)mnl.de>
wrote:
>
> Hi,
>
> I hope, this is the right place. "rpm -qf 92-crashkernel.install" led to
> "kexec-tools", google led to
>
https://github.com/jesa7955/kexec-tools-fedora which led to this
> mailinglist.
Hi Michael,
Yes, this is the right place to discuss it.
>
> I've moved to systemd-boot. The instructions that I've used included
> removing grubby. This might be excessive, but from the description
> ("grubby - command line tool for configuring grub, lilo, and elilo")
> it's quite logical to do so.
>
> However, the kernel-install plugin referenced above invokes "kdumpctl"
> which depends on grubby (without an explicit package dependency).
>
Actually, systemd-boot isn't fully supported by kexec-tools now, so you
may get some error messages.
After Coiby's patch[1], 92-crashkernel.install will not do anything if grub
(zipl for s390) related configuration file doesn't exist. This patch is merged
but it is not included in the package released for f35/f36 now.
The grubby is required before this patch[2], we changed it to recommend
because some fedora variants do not use grubby.
There is a bug [1] that complains about weak dependencies, like used
for grubby, are discouraged in RHEL. We might need to revert the patch
you mentioned (or find a better solution).
> From what I can see in kdumpctl, grubby seems to be used to obtain
> information which is available in the loader directory of the
> boot-partition. This information is generated on a system that boots
> with grub2 as well. So maybe this should be changed from invoking grubby
> to reading the information from the boot partition (/efi or /boot).
>
> - Michael
In most scenarios, grubby is a good tool to read/write bootloader entries'
information, I don't think it will be replaced in a short time. But I think we
can add a fallback mechanism that reads the information of the bootloader
entries directly from $BOOT/loader/entries/ that is defined by BLS[3].
Totally agree, the default should be to edit the BLS entries directly
and only use grubby when the installation uses grub.
Thanks
Philipp
[1]
https://bugzilla.redhat.com/show_bug.cgi?id=2162245