aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2013-11-21 20:23:54 -0800
committerTodd Poynor <toddpoynor@google.com>2013-11-21 20:23:54 -0800
commit479efb540a198a9b7cd278387b0d45009a05bb2b (patch)
tree5355d6183279fbed22c3a66ab15c06dc05d6eb03
parente65b7ea8801145626504c724c28aedd0e5038a28 (diff)
init.rc: mount pstore fs, set console-ramoops permissionsandroid-sdk-4.4.2_r1.0.1android-sdk-4.4.2_r1
Change-Id: I44cb00f9123c6044a03de926b6a616da753bb549
-rw-r--r--rootdir/init.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index a0a98134..21ebccb7 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -136,6 +136,11 @@ loglevel 3
# checker programs.
mkdir /dev/fscklogs 0770 root system
+# pstore/ramoops previous console log
+ mount pstore pstore /sys/fs/pstore
+ chown system log /sys/fs/pstore/console-ramoops
+ chmod 0440 /sys/fs/pstore/console-ramoops
+
on post-fs
# once everything is setup, no need to modify /
mount rootfs rootfs / ro remount