diff options
author | Nick Kralevich <nnk@google.com> | 2015-04-25 13:48:26 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2015-04-25 13:48:26 -0700 |
commit | a1f6a4b13921f61799be14a2544bdbf95958eae7 (patch) | |
tree | 0edd84d09e49194202228860b4345b7edac0109f /init/init.cpp | |
parent | 6ce5625d58c2376b719802a0ae0b56bcd3afcdc8 (diff) | |
download | core-a1f6a4b13921f61799be14a2544bdbf95958eae7.tar.gz core-a1f6a4b13921f61799be14a2544bdbf95958eae7.tar.bz2 core-a1f6a4b13921f61799be14a2544bdbf95958eae7.zip |
init: remove mkdir /dev /proc /sys
These directories are already present in the initial ramdisk, and
these mkdir calls are no-ops.
Change-Id: I528f9e96a3471de904845a2f9e09c1b6ff83a708
Diffstat (limited to 'init/init.cpp')
-rw-r--r-- | init/init.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/init/init.cpp b/init/init.cpp index 90cbea0b6..377b89cdd 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -985,10 +985,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. - mkdir("/dev", 0755); - mkdir("/proc", 0755); - mkdir("/sys", 0755); - mount("tmpfs", "/dev", "tmpfs", MS_NOSUID, "mode=0755"); mkdir("/dev/pts", 0755); mkdir("/dev/socket", 0755); |