mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-18 10:04:17 +03:00
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:
parent
99ef9806e2
commit
6ac8c49a83
@ -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 (proc_cmdline_has_key_starting_with (cmdline, "androidboot."))
|
||||||
{
|
{
|
||||||
|
if (is_aboot)
|
||||||
|
*is_aboot = true;
|
||||||
*out_target = g_strdup (slot_a);
|
*out_target = g_strdup (slot_a);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user