diff options
author | Alessio Balsini <balsini@google.com> | 2019-12-09 10:26:05 +0100 |
---|---|---|
committer | Alessio Balsini <balsini@google.com> | 2019-12-16 22:25:45 +0100 |
commit | a9665ced57ebd3f00f11cd8d9d99b33269687286 (patch) | |
tree | 74552b4a0de01c3f51c1a9e487a879ceda7499e2 /recovery.cpp | |
parent | Merge "minui: add ARGB_8888 format" (diff) | |
download | android_bootable_recovery-a9665ced57ebd3f00f11cd8d9d99b33269687286.tar android_bootable_recovery-a9665ced57ebd3f00f11cd8d9d99b33269687286.tar.gz android_bootable_recovery-a9665ced57ebd3f00f11cd8d9d99b33269687286.tar.bz2 android_bootable_recovery-a9665ced57ebd3f00f11cd8d9d99b33269687286.tar.lz android_bootable_recovery-a9665ced57ebd3f00f11cd8d9d99b33269687286.tar.xz android_bootable_recovery-a9665ced57ebd3f00f11cd8d9d99b33269687286.tar.zst android_bootable_recovery-a9665ced57ebd3f00f11cd8d9d99b33269687286.zip |
Diffstat (limited to '')
-rw-r--r-- | recovery.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp index f59a940fc..e4b8e45fb 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"); } |