fix bind mount for newer kernel

This commit is contained in:
criyle 2020-08-08 14:44:23 -07:00
parent cb27f84136
commit 405a90a0d1
2 changed files with 1 additions and 2 deletions

2
env/mount_linux.go vendored
View File

@ -76,7 +76,7 @@ func getDefaultMount(tmpFsConf string) *mount.Builder {
// ghc wants /var/lib/ghc
WithBind("/var/lib/ghc", "var/lib/ghc", true).
// javaScript wants /dev/urandom
WithBind("/dev/urandom", "dev/urandom", true).
WithBind("/dev/urandom", "dev/urandom", false).
// work dir
WithTmpfs("w", tmpFsConf).
// tmp dir

View File

@ -39,7 +39,6 @@ mount:
- type: bind
source: /dev/urandom
target: /dev/urandom
readonly: true
# work dir
- type: tmpfs
target: /w