From d306178c835123d4520a63ac824c4421df9455ce Mon Sep 17 00:00:00 2001 From: Alexander Martinz Date: Fri, 27 Aug 2021 13:37:54 +0200 Subject: [PATCH] init: reboot to recovery on panic by default to allow reading pstore Note: bootloaders can still change the reboot target using cmdline. Change-Id: I982ddb0b5720c660026e9b8b2ec4d0c3196b6442 Signed-off-by: Alexander Martinz Signed-off-by: Pranav Vashi --- init/reboot_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/reboot_utils.cpp b/init/reboot_utils.cpp index 547b1869f..dd0fbbfe8 100644 --- a/init/reboot_utils.cpp +++ b/init/reboot_utils.cpp @@ -37,7 +37,7 @@ namespace android { namespace init { -static std::string init_fatal_reboot_target = "bootloader"; +static std::string init_fatal_reboot_target = "recovery"; static bool init_fatal_panic = false; // this needs to read the /proc/* files directly because it is called before