grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] kern/efi: Adding efi-watchdog command


From: Erwan Velu
Subject: Re: [PATCH v2] kern/efi: Adding efi-watchdog command
Date: Tue, 7 Sep 2021 13:20:05 +0200

Daniel, anything more about this V2 before I prepare the V3 ?

Le ven. 3 sept. 2021 à 08:34, Erwan Velu <e.velu@criteo.com> a écrit :
Le 03/09/2021 à 04:09, Michael Chang a écrit :
[...]
> I'd suggest to move this efi-watchdog command registration to
> grub_register_core_commands() in grub-core/kern/corecmd.c as that helps
> us tracing or knowing available commands in grub's rescue mode.
>
> Also it would be great to see the explaination why this command needs to
> be in the core. To my understandng it could be that users may want to
> disarm the watchdog to not interrupt their work in rescue mode during a
> troubleshooting or debug session, but I am not fully clear about the
> purpose.

Hey Michael,

I'm waiting for other reviews and will add your points into a V3.


You are perfectly right on the aim.

To be efficient, the watchdog must be enabled at soon as possible and so

cannot be set into the configuration file as we are far too late and issues

could have already hit GRUB (aka unable to read the filesystem).

So, once the option is set, every-time GRUB will boots the watchdog is
enabled.


And yes, if you need to perform a debug session, you need being in a
position to disable it.

That's why we need this commands in the low-level command sets of grub.

I'm not very familiar with GRUB internals, so if the corecmd is a better
place and other agree on that,

I'll make the move in V3.


Erwan,


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]