summaryrefslogtreecommitdiff
path: root/recovery.cpp
diff options
context:
space:
mode:
authorSteven Laver <lavers@google.com>2020-01-23 17:03:01 -0800
committerSteven Laver <lavers@google.com>2020-01-23 17:03:01 -0800
commit994626a103861d259a9063df9d635747ce154ce6 (patch)
treefcef5478fd9235a55e9d9ce276e60723ac1ee4e2 /recovery.cpp
parent4cd1fd219f0679f1fd06c53299d52b34e0718cbb (diff)
parent7138a10abcb5f7bfdd8053f9a53f19992749a7a0 (diff)
Merge RP1A.200123.001
Change-Id: I1bb7cfbe0a70e1bb177535f02a6565312e7b1d57
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 3417f398..d9da6096 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -53,6 +53,7 @@
#include "install/fuse_install.h"
#include "install/install.h"
#include "install/package.h"
+#include "install/snapshot_utils.h"
#include "install/wipe_data.h"
#include "install/wipe_device.h"
#include "otautil/boot_state.h"
@@ -486,7 +487,13 @@ static Device::BuiltinAction PromptAndWait(Device* device, InstallResult status)
screen_ui->CheckBackgroundTextImages();
break;
}
+
case Device::MOUNT_SYSTEM:
+ // For Virtual A/B, set up the snapshot devices (if exist).
+ if (!CreateSnapshotPartitions()) {
+ ui->Print("Virtual A/B: snapshot partitions creation failed.\n");
+ break;
+ }
if (ensure_path_mounted_at(android::fs_mgr::GetSystemRoot(), "/mnt/system") != -1) {
ui->Print("Mounted /system.\n");
}