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 <amartinz@shiftphones.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
Alexander Martinz 2021-08-27 13:37:54 +02:00 committed by DigiGoon
parent cbc854979e
commit d306178c83

View file

@ -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