summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/boot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/boot.c b/commands/boot.c
index 91766e03be..c4b49a9035 100644
--- a/commands/boot.c
+++ b/commands/boot.c
@@ -216,7 +216,9 @@ static struct blspec *bootentries_collect(char *entries[], int num_entries)
int i;
blspec = blspec_alloc();
- blspec->menu->display = asprintf("boot");
+
+ if (IS_ENABLED(CONFIG_MENU))
+ blspec->menu->display = asprintf("boot");
if (!num_entries)
bootscript_scan_path(blspec, "/env/boot");