summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-02-14 09:03:05 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-02-19 09:28:38 +0100
commit1b3ee1f1a292f88e5f18aae152082fac97aa1ba6 (patch)
treebfd73746909f564d8526580c5618b9a46590a731 /commands
parentc9322d4feab59fc4d05996d2c3d02eae50336be0 (diff)
downloadbarebox-master.tar.gz
commands: boot: fixup create boot entries on demandHEADmaster
Don't try other boot entries if one succeeds. This is the behavior before the change, thus reinstate it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/boot.c b/commands/boot.c
index aeaba39..aaa20fa 100644
--- a/commands/boot.c
+++ b/commands/boot.c
@@ -97,7 +97,7 @@ static int do_boot(int argc, char *argv[])
bootentries_for_each_entry(entries, entry) {
ret = boot_entry(entry, verbose, dryrun);
if (!ret)
- break;
+ goto out;
}
bootentries_free(entries);