From 405a90a0d138fc7ae90edc6ddbfef66386fdabe6 Mon Sep 17 00:00:00 2001 From: criyle Date: Sat, 8 Aug 2020 14:44:23 -0700 Subject: [PATCH] fix bind mount for newer kernel --- env/mount_linux.go | 2 +- mount.yaml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/env/mount_linux.go b/env/mount_linux.go index 2400ef4..86350f5 100644 --- a/env/mount_linux.go +++ b/env/mount_linux.go @@ -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 diff --git a/mount.yaml b/mount.yaml index eabd1e5..9f2bc7d 100644 --- a/mount.yaml +++ b/mount.yaml @@ -39,7 +39,6 @@ mount: - type: bind source: /dev/urandom target: /dev/urandom - readonly: true # work dir - type: tmpfs target: /w