Fix the grub2 mode regression introduced in 1.1.18 (#3772)
Ventoy CI / build (push) Canceled after 0s
Mirror GitHub to Gitee / Sync-GitHub-to-Gitee (push) Canceled after 0s

This commit is contained in:
longpanda
2026-10-12 14:39:52 +08:00
parent 24329a996a
commit 06037474e6
@@ -149,6 +149,10 @@ grub_env_get (const char *name)
if (var->read_hook)
return var->read_hook (var, var->value);
/* theme var hook will cause them return '' after unset */
if (var->value && var->value[0] == 0 && grub_strcmp(name, "theme") == 0)
return 0;
return var->value;
}