On Thu, 29 Dec 2022 at 10:25, Heinrich Schuchardt
<heinrich.schucha...@canonical.com> wrote:
>
> It is volatile variables that we do not allow to be restored from file.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schucha...@canonical.com>
> ---
>  lib/efi_loader/efi_var_file.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/efi_loader/efi_var_file.c b/lib/efi_loader/efi_var_file.c
> index 3d58caa13d..de9ba8de99 100644
> --- a/lib/efi_loader/efi_var_file.c
> +++ b/lib/efi_loader/efi_var_file.c
> @@ -176,7 +176,7 @@ efi_status_t efi_var_restore(struct efi_var_file *buf, 
> bool safe)
>                 data = var->name + u16_strlen(var->name) + 1;
>
>                 /*
> -                * Secure boot related and non-volatile variables shall only 
> be
> +                * Secure boot related and volatile variables shall only be
>                  * restored from U-Boot's preseed.
>                  */
>                 if (!safe &&
> --
> 2.37.2
>
Reviewed-by: Ilias Apalodimas <ilias.apalodi...@linaro.org>

Reply via email to