summaryrefslogtreecommitdiffstats
path: root/updater/updater_runtime.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2020-04-28 22:31:11 +0200
committerYifan Hong <elsk@google.com>2020-05-20 00:20:14 +0200
commit0c328d02c1546537478ffc575eed128e69fce84a (patch)
tree0477953cf26b4daf2e5041d0f8a808f4119e7749 /updater/updater_runtime.cpp
parentAdd slot suffix to DAP ops (diff)
downloadandroid_bootable_recovery-0c328d02c1546537478ffc575eed128e69fce84a.tar
android_bootable_recovery-0c328d02c1546537478ffc575eed128e69fce84a.tar.gz
android_bootable_recovery-0c328d02c1546537478ffc575eed128e69fce84a.tar.bz2
android_bootable_recovery-0c328d02c1546537478ffc575eed128e69fce84a.tar.lz
android_bootable_recovery-0c328d02c1546537478ffc575eed128e69fce84a.tar.xz
android_bootable_recovery-0c328d02c1546537478ffc575eed128e69fce84a.tar.zst
android_bootable_recovery-0c328d02c1546537478ffc575eed128e69fce84a.zip
Diffstat (limited to '')
-rw-r--r--updater/updater_runtime.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/updater/updater_runtime.cpp b/updater/updater_runtime.cpp
index c4222a56e..2e840b972 100644
--- a/updater/updater_runtime.cpp
+++ b/updater/updater_runtime.cpp
@@ -28,6 +28,7 @@
#include <android-base/strings.h>
#include <android-base/unique_fd.h>
#include <ext4_utils/wipe.h>
+#include <fs_mgr.h>
#include <selinux/label.h>
#include <tune2fs.h>
@@ -130,3 +131,7 @@ int UpdaterRuntime::Tune2Fs(const std::vector<std::string>& args) const {
// tune2fs changes the filesystem parameters on an ext2 filesystem; it returns 0 on success.
return tune2fs_main(tune2fs_args.size() - 1, tune2fs_args.data());
}
+
+std::string UpdaterRuntime::AddSlotSuffix(const std::string_view arg) const {
+ return std::string(arg) + fs_mgr_get_slot_suffix();
+}