From 301aaabfeb86948ad222cf1cc37144dcced0d53e Mon Sep 17 00:00:00 2001 From: Ziyang Zhou Date: Fri, 17 Dec 2021 22:44:33 +0800 Subject: [PATCH 4/6] disable ueventd coldboot --- init/init.cpp | 1 - rootdir/init.rc | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/init/init.cpp b/init/init.cpp index 32186044a..925e3243b 100755 --- a/init/init.cpp +++ b/init/init.cpp @@ -1017,7 +1017,6 @@ int main(int argc, char** argv) { // Get the basic filesystem setup we need put together in the initramdisk // on / and then we'll let the rc file figure out the rest. - mount("tmpfs", "/dev", "tmpfs", MS_NOSUID, "mode=0755"); mkdir("/dev/pts", 0755); mkdir("/dev/socket", 0755); unshare(CLONE_NEWCGROUP); diff --git a/rootdir/init.rc b/rootdir/init.rc index 9e61bbcdf..c46190d1f 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -39,6 +39,7 @@ on early-init # cgroup for system_server and surfaceflinger mkdir /dev/memcg/system 0550 system system + write /dev/.coldboot_done 1 start ueventd on init -- 2.34.1