]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
1. Fix the blank item in the last of Language select menu
authorlongpanda <admin@ventoy.net>
Wed, 4 Jan 2023 11:19:32 +0000 (19:19 +0800)
committerlongpanda <admin@ventoy.net>
Wed, 4 Jan 2023 11:19:32 +0000 (19:19 +0800)
2. Fix the menu display VTLANG_NO_PERSISTENCE issue when use persistence

GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c
INSTALL/ventoy_pack.sh

index 8fe9416304893a5462b1f004855c01c0d58f8582..83aa105f30cfdf637aa3a6035d8bd010d6c69bbc 100644 (file)
@@ -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, "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++)
                   "  echo %s\n}\n", "");
     
     for (i = 0; i < node->backendnum; i++)
index cfe5772f28441389f6b67aca1e5f4dca96f1a3b7..43f45ebffc419e51100d661b0730687ad6af7c9f 100644 (file)
@@ -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 "    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
 
 echo "        echo \"Return ...\"" >> menulang.cfg
 echo "}" >> menulang.cfg