diff --git a/commands/boot.c b/commands/boot.c index 91766e03b..c4b49a903 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");