prepare-root: Handle non-AB aboot properly

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.
This commit is contained in:
Alexander Larsson 2024-04-15 20:09:34 +02:00
parent 99ef9806e2
commit 6ac8c49a83

View File

@ -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;
}