Now that we enforce variables to be available, flashing can result in
following error message:

  ERROR: fastboot: no such variable: has-slot:rootfs-eMMC

Report the default no value to suppress this.

Fixes: dd377c937f8b ("common: fastboot: send FAIL if variable does not exist")
Signed-off-by: Ahmad Fatoum <[email protected]>
---
 common/fastboot.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/fastboot.c b/common/fastboot.c
index 603391de7739..e5c79c22376c 100644
--- a/common/fastboot.c
+++ b/common/fastboot.c
@@ -180,6 +180,8 @@ static int fastboot_add_partition_variables(struct fastboot 
*fb, struct list_hea
        fb_setvar(var, "%s", type);
        var = fb_addvar(fb, list, "is-logical:%s", fentry->name);
        fb_setvar(var, "%s", "no");
+       var = fb_addvar(fb, list, "has-slot:%s", fentry->name);
+       fb_setvar(var, "%s", "no");
 
        return ret;
 }
-- 
2.39.5


Reply via email to