From 03429acceeb0f7a0316075fd66ac6270be403ebe Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Tue, 29 Oct 2024 16:28:33 +0900 Subject: [PATCH] init: mount tracefs before apexd-bootstrap This removes the error log when apexd-bootstrap starts: cutils-trace: Error opening trace file: No such file or directory (2) Bug: 376150518 Test: boot-time trace shows apexd-bootstrap see https://source.android.com/docs/core/perf/boot-times#systrace Change-Id: I5feaece50663a602b61377cee034060fd30217f9 --- rootdir/init.rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootdir/init.rc b/rootdir/init.rc index 12d9c4377..5bb64cc60 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -70,6 +70,9 @@ on early-init start ueventd + # Mount tracefs (with GID=AID_READTRACEFS) + mount tracefs tracefs /sys/kernel/tracing gid=3012 + # Run apexd-bootstrap so that APEXes that provide critical libraries # become available. Note that this is executed as exec_start to ensure that # the libraries are available to the processes started after this statement. @@ -80,9 +83,6 @@ on early-init mkdir /dev/boringssl 0755 root root mkdir /dev/boringssl/selftest 0755 root root - # Mount tracefs (with GID=AID_READTRACEFS) - mount tracefs tracefs /sys/kernel/tracing gid=3012 - # create sys dirctory mkdir /dev/sys 0755 system system mkdir /dev/sys/fs 0755 system system