Skip to content

Commit

Permalink
prepare-root: Handle non-AB aboot properly
Browse files Browse the repository at this point in the history
otcore_get_ostree_target() should set is_aboot for android boot
systems, but currently it only does this on A/B boot systems, not
single-boot-partition systems. Fix this by setting it in the second
case.
  • Loading branch information
alexlarsson committed Apr 15, 2024
1 parent 99ef980 commit 6ac8c49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libotcore/otcore-prepare-root.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ otcore_get_ostree_target (const char *cmdline, gboolean *is_aboot, char **out_ta
*/
if (proc_cmdline_has_key_starting_with (cmdline, "androidboot."))
{
if (is_aboot)
*is_aboot = true;
*out_target = g_strdup (slot_a);
return TRUE;
}
Expand Down

0 comments on commit 6ac8c49

Please sign in to comment.