diff options
author | David Anderson <dvander@google.com> | 2019-01-17 14:18:20 -0800 |
---|---|---|
committer | Sandeep Patil <sspatil@google.com> | 2019-01-19 18:59:33 +0000 |
commit | 782b323df10572e5d3236e5ac7228c950f33a38e (patch) | |
tree | 06a41826a0b69235f9624bdd977bcf0cac0b864b /include/libgsi | |
parent | 963d7cc260bd79027b192aa4cd08e5a9920d0357 (diff) | |
download | gsid-782b323df10572e5d3236e5ac7228c950f33a38e.tar.gz |
Force reboots within a GSI to return to the normal system image.
For now we are going to make GSI installs ephemeral. They can be
preserved (by not explicitly wiping them), but they will only get one
boot attempt total. If they fail to boot, or if the user reboots the
device once within the GSI, the next boot will return to the normal
system image. The existing GSI can then be re-enabled, or re-installed.
Bug: 122556707
Fixes: 123103015
Test: manual test
Change-Id: Iab07087fa5cd8b02af14bf0a5f2726018294f036
Diffstat (limited to 'include/libgsi')
-rw-r--r-- | include/libgsi/libgsi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libgsi/libgsi.h b/include/libgsi/libgsi.h index b3d1202..3daadbb 100644 --- a/include/libgsi/libgsi.h +++ b/include/libgsi/libgsi.h @@ -25,7 +25,7 @@ static constexpr char kGsiServiceName[] = "gsiservice"; static constexpr char kGsiBootedIndicatorFile[] = "/metadata/gsi/booted"; -static constexpr int kMaxBootAttempts = 3; +static constexpr int kMaxBootAttempts = 1; // Returns true if the currently running system image is a live GSI. bool IsGsiRunning(); |