summaryrefslogtreecommitdiff
path: root/boot_control_android.cc
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2018-10-04 13:28:05 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-10-04 13:28:05 -0700
commit901b98116695206c895b2b37218578db73644111 (patch)
tree556b93964d26259ec6188f075705fdda21d5e13f /boot_control_android.cc
parent033d810056be9233a04ce9d83410b2981c3f3322 (diff)
parent20ccb3fcd8a8169aafa944c3041058283d4b550f (diff)
Don't hardcode the super partition name. am: d63cb3ccd7
am: 20ccb3fcd8 Change-Id: Iddc7fa65e679baeea04ee59f99250e36c69be334
Diffstat (limited to 'boot_control_android.cc')
-rw-r--r--boot_control_android.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/boot_control_android.cc b/boot_control_android.cc
index 7aa72c3b..ad819ad4 100644
--- a/boot_control_android.cc
+++ b/boot_control_android.cc
@@ -23,6 +23,7 @@
#include <base/logging.h>
#include <bootloader_message/bootloader_message.h>
#include <brillo/message_loops/message_loop.h>
+#include <fs_mgr.h>
#include "update_engine/common/utils.h"
#include "update_engine/dynamic_partition_control_android.h"
@@ -394,7 +395,8 @@ bool BootControlAndroid::InitPartitionMetadata(
return false;
}
base::FilePath device_dir(device_dir_str);
- string super_device = device_dir.Append(LP_METADATA_PARTITION_NAME).value();
+ string super_device =
+ device_dir.Append(fs_mgr_get_super_partition_name()).value();
Slot current_slot = GetCurrentSlot();
if (target_slot == current_slot) {