summaryrefslogtreecommitdiffstats
path: root/init/init.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2018-08-01 21:02:35 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-08-01 21:02:35 +0000
commit6e05552e357b97403ffa73d8feaf6431689d28a1 (patch)
tree42b18b935aa6e546f1dc12f8d02e37c930b9c7dc /init/init.cpp
parent10601fd5126590a8667a8ac9e98c0f3cbb56c435 (diff)
parent81ae07509d3b911915a63dddcd83ac2398dd9583 (diff)
downloadsystem_core-6e05552e357b97403ffa73d8feaf6431689d28a1.tar.gz
system_core-6e05552e357b97403ffa73d8feaf6431689d28a1.tar.bz2
system_core-6e05552e357b97403ffa73d8feaf6431689d28a1.zip
Merge "init: run fsck for early mount partitions"
Diffstat (limited to 'init/init.cpp')
-rw-r--r--init/init.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/init/init.cpp b/init/init.cpp
index 73194bdd9..7ad9ec396 100644
--- a/init/init.cpp
+++ b/init/init.cpp
@@ -670,6 +670,10 @@ int main(int argc, char** argv) {
CHECKCALL(mknod("/dev/random", S_IFCHR | 0666, makedev(1, 8)));
CHECKCALL(mknod("/dev/urandom", S_IFCHR | 0666, makedev(1, 9)));
+ // This is needed for log wrapper, which gets called before ueventd runs.
+ CHECKCALL(mknod("/dev/ptmx", S_IFCHR | 0666, makedev(5, 2)));
+ CHECKCALL(mknod("/dev/null", S_IFCHR | 0666, makedev(1, 3)));
+
// Mount staging areas for devices managed by vold
// See storage config details at http://source.android.com/devices/storage/
CHECKCALL(mount("tmpfs", "/mnt", "tmpfs", MS_NOEXEC | MS_NOSUID | MS_NODEV,