diff options
author | David Anderson <dvander@google.com> | 2019-08-30 21:35:02 +0200 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2019-09-05 03:12:23 +0200 |
commit | 643ddd99dfa3d90ebcb1f8396a2375ba7e80633c (patch) | |
tree | ee48d1b7426ef55697db4401f50146fe056be5be | |
parent | Merge "Make libboot_control vendor available." (diff) | |
download | android_bootable_recovery-643ddd99dfa3d90ebcb1f8396a2375ba7e80633c.tar android_bootable_recovery-643ddd99dfa3d90ebcb1f8396a2375ba7e80633c.tar.gz android_bootable_recovery-643ddd99dfa3d90ebcb1f8396a2375ba7e80633c.tar.bz2 android_bootable_recovery-643ddd99dfa3d90ebcb1f8396a2375ba7e80633c.tar.lz android_bootable_recovery-643ddd99dfa3d90ebcb1f8396a2375ba7e80633c.tar.xz android_bootable_recovery-643ddd99dfa3d90ebcb1f8396a2375ba7e80633c.tar.zst android_bootable_recovery-643ddd99dfa3d90ebcb1f8396a2375ba7e80633c.zip |
-rw-r--r-- | boot_control/libboot_control.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/boot_control/libboot_control.cpp b/boot_control/libboot_control.cpp index 8b44d5d1c..fa7dc47ef 100644 --- a/boot_control/libboot_control.cpp +++ b/boot_control/libboot_control.cpp @@ -196,6 +196,10 @@ bool BootControl::Init() { // was not set (from either the command line or the device tree), we can later // initialize it from the bootloader_control struct. std::string suffix_prop = android::base::GetProperty("ro.boot.slot_suffix", ""); + if (suffix_prop.empty()) { + LOG(ERROR) << "Slot suffix property is not set"; + return false; + } current_slot_ = SlotSuffixToIndex(suffix_prop.c_str()); std::string err; |