summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/boot.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/commands/boot.c b/commands/boot.c
index 152615f9a1..719ad95bc4 100644
--- a/commands/boot.c
+++ b/commands/boot.c
@@ -202,9 +202,12 @@ static int bootentry_parse_one(struct blspec *blspec, const char *name)
ret = blspec_scan_devicename(blspec, name);
if (ret > 0)
found += ret;
- ret = blspec_scan_directory(blspec, name);
- if (ret > 0)
- found += ret;
+
+ if (*name == '/') {
+ ret = blspec_scan_directory(blspec, name);
+ if (ret > 0)
+ found += ret;
+ }
}
if (!found) {