cmd/earlyinit: mount /dev/shm
All checks were successful
Test / Create distribution (push) Successful in 1m9s
Test / Sandbox (push) Successful in 2m52s
Test / ShareFS (push) Successful in 3m49s
Test / Hakurei (push) Successful in 4m4s
Test / Sandbox (race detector) (push) Successful in 5m30s
Test / Hakurei (race detector) (push) Successful in 6m37s
Test / Flake checks (push) Successful in 1m22s
All checks were successful
Test / Create distribution (push) Successful in 1m9s
Test / Sandbox (push) Successful in 2m52s
Test / ShareFS (push) Successful in 3m49s
Test / Hakurei (push) Successful in 4m4s
Test / Sandbox (race detector) (push) Successful in 5m30s
Test / Hakurei (race detector) (push) Successful in 6m37s
Test / Flake checks (push) Successful in 1m22s
Required by many programs. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -137,6 +137,14 @@ func main() {
|
|||||||
MS_NOSUID|MS_NOEXEC,
|
MS_NOSUID|MS_NOEXEC,
|
||||||
"mode=620,ptmxmode=666",
|
"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,
|
// The kernel might be unable to set up the console. When that happens,
|
||||||
// printk is called with "Warning: unable to open an initial console."
|
// printk is called with "Warning: unable to open an initial console."
|
||||||
|
|||||||
Reference in New Issue
Block a user