diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-02-14 09:03:05 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-19 09:28:38 +0100 |
commit | 1b3ee1f1a292f88e5f18aae152082fac97aa1ba6 (patch) | |
tree | bfd73746909f564d8526580c5618b9a46590a731 | |
parent | c9322d4feab59fc4d05996d2c3d02eae50336be0 (diff) | |
download | barebox-1b3ee1f1a292f88e5f18aae152082fac97aa1ba6.tar.gz barebox-1b3ee1f1a292f88e5f18aae152082fac97aa1ba6.tar.xz |
commands: boot: fixup create boot entries on demand
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>
-rw-r--r-- | commands/boot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/boot.c b/commands/boot.c index aeaba3992e..aaa20faae9 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); |