From 4eaf905858c6a1d7cf0639bed3e8de3bd7987646 Mon Sep 17 00:00:00 2001 From: Ken Sumrall Date: Wed, 18 Sep 2013 17:49:21 -0700 Subject: Create a separate copy of the fsck logs The log_target parameter of android_fork_execvp_ext() is now a bit field, and multiple targets can be set to log to multiple places at the same time. The new target LOG_FILE will log to a file specified by the new parameter file_path. Set LOG_FILE and log to a file in /dev (the only writable filesystem avilable when e2fsck runs) when invoking e2fsck in fs_mgr. Bug: 10021342 Change-Id: I63baf644cc8c3afccc8345df27a74203b44d0400 --- rootdir/init.rc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rootdir') diff --git a/rootdir/init.rc b/rootdir/init.rc index be74f6f..9eb78d8 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -133,6 +133,10 @@ loglevel 3 # This is needed by any process that uses socket tagging. chmod 0644 /dev/xt_qtaguid +# Create location for fs_mgr to store abbreviated output from filesystem +# checker programs. + mkdir /dev/fscklogs 0770 root system + on post-fs # once everything is setup, no need to modify / mount rootfs rootfs / ro remount -- cgit v1.1