diff options
-rw-r--r-- | lib/libavb/fsl/fsl_bootctl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libavb/fsl/fsl_bootctl.c b/lib/libavb/fsl/fsl_bootctl.c index c112248..43cbe8d 100644 --- a/lib/libavb/fsl/fsl_bootctl.c +++ b/lib/libavb/fsl/fsl_bootctl.c @@ -44,6 +44,7 @@ bool is_slotvar_avb(char *cmd) { assert(cmd != NULL); if (!strcmp_l1("has-slot:", cmd) || !strcmp_l1("slot-successful:", cmd) || + !strcmp_l1("slot-count", cmd) || !strcmp_l1("slot-suffixes", cmd) || !strcmp_l1("current-slot", cmd) || !strcmp_l1("slot-unbootable:", cmd) || @@ -87,6 +88,10 @@ void get_slotvar_avb(AvbOps *ops, char *cmd, char *response, size_t chars_left) } else if (!strcmp_l1("slot-suffixes", cmd)) { strncat(response, "_a,_b", chars_left); return; + + } else if (!strcmp_l1("slot-count", cmd)) { + strncat(response, "2", chars_left); + return; } /* load ab meta */ |