diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/earlyinit/main.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/earlyinit/main.go b/cmd/earlyinit/main.go index 4578afbc..d1652e5f 100644 --- a/cmd/earlyinit/main.go +++ b/cmd/earlyinit/main.go @@ -137,6 +137,14 @@ func main() { MS_NOSUID|MS_NOEXEC, "mode=620,ptmxmode=666", )) + must(os.Mkdir("/dev/shm/", 0)) + mustSyscall("mount shm", Mount( + "shm", + "/dev/shm/", + "tmpfs", + MS_NOSUID|MS_NODEV, + "", + )) // The kernel might be unable to set up the console. When that happens, // printk is called with "Warning: unable to open an initial console." |
