Skip to content

Commit

Permalink
Merge pull request #61 from ejoerns/v0/topic/bootchooser-new
Browse files Browse the repository at this point in the history
Adaptions for upcoming bootchooser implementation
  • Loading branch information
Enrico Jorns committed Aug 17, 2016
2 parents b9fbc96 + a35d58a commit 80d3e70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/bootchooser.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ static gboolean barebox_set_primary(RaucSlot *slot) {
BOOTSTATE_PREFIX, s->bootname, prio));
}

g_ptr_array_add(pairs, g_strdup_printf("%s.%s.ok=%i",
BOOTSTATE_PREFIX, slot->bootname, 1));
g_ptr_array_add(pairs, g_strdup_printf("%s.%s.remaining_attempts=%i",
BOOTSTATE_PREFIX, slot->bootname, 3));

Expand Down
2 changes: 1 addition & 1 deletion src/install.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static const gchar* get_cmdline_bootname(void) {
/* For barebox, we check if the bootstate code set the active slot name
* in the command line */
if (g_strcmp0(r_context()->config->system_bootloader, "barebox") == 0) {
regex = g_regex_new("bootstate\\.active=(\\S+)", 0, 0, NULL);
regex = g_regex_new("(?:bootstate|bootchooser)\\.active=(\\S+)", 0, 0, NULL);
if (g_regex_match(regex, contents, 0, &match)) {
bootname = g_match_info_fetch(match, 1);
goto out;
Expand Down

0 comments on commit 80d3e70

Please sign in to comment.