Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7a010de authored by Tom Cherry's avatar Tom Cherry Committed by Gerrit Code Review
Browse files

Merge "init: Write the reason in BCB on "reboot recovery""

parents 5c296a00 4d35f2e5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -669,6 +669,13 @@ bool HandlePowerctlMessage(const std::string& command) {
                                  "bootloader_message: "
                               << err;
                }
            } else if (reboot_target == "recovery") {
                const std::vector<std::string> options = {};
                std::string err;
                if (!write_bootloader_message(options, &err)) {
                    LOG(ERROR) << "Failed to set bootloader message: " << err;
                    return false;
                }
            } else if (reboot_target == "sideload" || reboot_target == "sideload-auto-reboot" ||
                       reboot_target == "fastboot") {
                std::string arg = reboot_target == "sideload-auto-reboot" ? "sideload_auto_reboot"