diff --git a/runsc/boot/mount_hints.go b/runsc/boot/mount_hints.go index 60833afae..794356d61 100644 --- a/runsc/boot/mount_hints.go +++ b/runsc/boot/mount_hints.go @@ -184,6 +184,8 @@ func (m *mountHint) setOptions(val string) error { } func (m *mountHint) isSupported() bool { + // TODO(b/142076984): Only support tmpfs for now. Bind mounts require a + // common gofer to mount all shared volumes. return m.mount.Type == tmpfs.Name && m.share == pod } diff --git a/runsc/boot/vfs.go b/runsc/boot/vfs.go index be63de370..88e0cd946 100644 --- a/runsc/boot/vfs.go +++ b/runsc/boot/vfs.go @@ -919,9 +919,7 @@ func (c *containerMounter) mountTmp(ctx context.Context, conf *config.Config, cr func (c *containerMounter) processHints(conf *config.Config, creds *auth.Credentials) error { ctx := c.k.SupervisorContext() for _, hint := range c.hints.mounts { - // TODO(b/142076984): Only support tmpfs for now. Bind mounts require a - // common gofer to mount all shared volumes. - if hint.mount.Type != tmpfs.Name { + if !hint.isSupported() { continue }