]> git.ipfire.org Git - thirdparty/grub.git/commit
util/grub-editenv: Wire list_variables() to optional fs_envblk
authorMichael Chang <mchang@suse.com>
Fri, 17 Oct 2025 09:01:38 +0000 (17:01 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 23 Oct 2025 17:15:01 +0000 (19:15 +0200)
commit4b5ea8dca62fa98fa277f0ee3b3a47efbedb3f47
tree4c73556e723e33fc88eb868f51c8744468ac6cad
parent84e2bc2f1e69253f9f0d4ca1891238c4d8374be1
util/grub-editenv: Wire list_variables() to optional fs_envblk

This patch updates list_variables() so that it also prints entries from
the external environment block when one is present. The function first
lists all variables from the file based envblk, then iterates over the
external envblk and prints those as well.

The output format remains the same as before. The change makes it
possible to inspect variables regardless of whether they are stored in
the file envblk or in the reserved block.

Signed-off-by: Michael Chang <mchang@suse.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Avnish Chouhan <avnish@linux.ibm.com>
Reviewed-by: Sudhakar Kuppusamy <sudhakar@linux.ibm.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub-editenv.c