init: Make console a shutdown critical service
A critical shutdown service is one that stays on right until the system
is rebooted. In order to be able to capture kernel messages right until
reboot this is required, otherwise after the console service is
terminated some messages can be lost.
Test: Reboot and verify messages show up on serial further down the reboot process
Change-Id: Iea58b5a76afe45b3346803021e3be81742b02ea0
diff --git a/rootdir/init.rc b/rootdir/init.rc
index efad37c..a2fb88a 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -1286,6 +1286,7 @@
group shell log readproc
seclabel u:r:shell:s0
setenv HOSTNAME console
+ shutdown critical
on property:ro.debuggable=1
# Give writes to anyone for the trace folder on debug builds.