summaryrefslogtreecommitdiffstats
path: root/updater/updater_runtime.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-05-20 02:30:31 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-05-20 02:30:31 +0200
commit31deac96f4273a3805c300566ae262ce8b2881da (patch)
treea694e494feb2b6ab9fabde222c4affb436784da8 /updater/updater_runtime.cpp
parentMerge "recovery: fastbootd: retry opening graphics" (diff)
parentAdd add_slot_suffix function. (diff)
downloadandroid_bootable_recovery-31deac96f4273a3805c300566ae262ce8b2881da.tar
android_bootable_recovery-31deac96f4273a3805c300566ae262ce8b2881da.tar.gz
android_bootable_recovery-31deac96f4273a3805c300566ae262ce8b2881da.tar.bz2
android_bootable_recovery-31deac96f4273a3805c300566ae262ce8b2881da.tar.lz
android_bootable_recovery-31deac96f4273a3805c300566ae262ce8b2881da.tar.xz
android_bootable_recovery-31deac96f4273a3805c300566ae262ce8b2881da.tar.zst
android_bootable_recovery-31deac96f4273a3805c300566ae262ce8b2881da.zip
Diffstat (limited to 'updater/updater_runtime.cpp')
-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 b1b8863fd..e93830505 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>
@@ -186,3 +187,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();
+}