summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-01-07 22:00:52 +0100
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-01-07 22:00:52 +0100
commit1bbec589b72f93521c2cd02ffc0831553241848c (patch)
tree1da44d0a08f9c32aa6b7bfdca6cb579576cb634c /recovery.cpp
parentMerge "Link libvndksupport dynamically instead of statically." am: 8b9ac5b83d am: dddedcc3de am: 58c0120969 (diff)
parentMerge "Mount snapshotted /system in Virtual A/B devices" am: 5ee782079a am: bc4b2b44e9 (diff)
downloadandroid_bootable_recovery-1bbec589b72f93521c2cd02ffc0831553241848c.tar
android_bootable_recovery-1bbec589b72f93521c2cd02ffc0831553241848c.tar.gz
android_bootable_recovery-1bbec589b72f93521c2cd02ffc0831553241848c.tar.bz2
android_bootable_recovery-1bbec589b72f93521c2cd02ffc0831553241848c.tar.lz
android_bootable_recovery-1bbec589b72f93521c2cd02ffc0831553241848c.tar.xz
android_bootable_recovery-1bbec589b72f93521c2cd02ffc0831553241848c.tar.zst
android_bootable_recovery-1bbec589b72f93521c2cd02ffc0831553241848c.zip
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 633734285..582ca48a5 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -50,6 +50,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"
@@ -437,7 +438,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");
}