From 6ac8c49a8347c939b7ce92cce86d0addb5d0a670 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 15 Apr 2024 20:09:34 +0200 Subject: [PATCH] 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. --- src/libotcore/otcore-prepare-root.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libotcore/otcore-prepare-root.c b/src/libotcore/otcore-prepare-root.c index 187eeec09c..f76db04a33 100644 --- a/src/libotcore/otcore-prepare-root.c +++ b/src/libotcore/otcore-prepare-root.c @@ -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; }