From c7dcaa57342a3c5b556d8572dfdba720bb15eba3 Mon Sep 17 00:00:00 2001 From: longpanda Date: Wed, 4 Jan 2023 19:19:32 +0800 Subject: [PATCH] 1. Fix the blank item in the last of Language select menu 2. Fix the menu display VTLANG_NO_PERSISTENCE issue when use persistence --- GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c | 2 +- INSTALL/ventoy_pack.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c index 8fe94163..83aa105f 100644 --- a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c +++ b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c @@ -3858,7 +3858,7 @@ static grub_err_t ventoy_cmd_sel_persistence(grub_extcmd_context_t ctxt, int arg vtoy_ssprintf(buf, pos, "set timeout=%d\n", node->timeout); } - vtoy_ssprintf(buf, pos, "menuentry \"$VTLANG_NO_PERSISTENCE\" --class=\"sel_persistence\" {\n" + vtoy_ssprintf(buf, pos, "menuentry \"$VTLANG_NO_PERSIST\" --class=\"sel_persistence\" {\n" " echo %s\n}\n", ""); for (i = 0; i < node->backendnum; i++) diff --git a/INSTALL/ventoy_pack.sh b/INSTALL/ventoy_pack.sh index cfe5772f..43f45ebf 100644 --- a/INSTALL/ventoy_pack.sh +++ b/INSTALL/ventoy_pack.sh @@ -103,7 +103,7 @@ ls -1 menu/ | grep -v 'zh_CN' | sort | while read vtlang; do echo " vt_load_menu_lang $vtlangname" >> menulang.cfg echo "}" >> menulang.cfg done -echo "menuentry \"$VTLANG_RETURN_PREVIOUS\" --class=vtoyret VTOY_RET {" >> menulang.cfg +echo "menuentry \"\$VTLANG_RETURN_PREVIOUS\" --class=vtoyret VTOY_RET {" >> menulang.cfg echo " echo \"Return ...\"" >> menulang.cfg echo "}" >> menulang.cfg