Skip to content
This repository was archived by the owner on Oct 26, 2023. It is now read-only.

Commit 2624de4

Browse files
committedAug 2, 2019
Make tmpfs mount option work.
Actually a directory within the bundle is bind mounted. Closes #4. Signed-off-by: Max Goltzsche <max.goltzsche@gmail.com>
1 parent fe06522 commit 2624de4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎model/resolve.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func NewResourceResolver(paths PathResolver, vols map[string]Volume) ResourceRes
4141
}
4242

4343
func (self *resourceResolver) ResolveMountSource(m VolumeMount) (src string, err error) {
44-
if m.Source == "" && m.Type != MOUNT_TYPE_TMPFS {
44+
if m.Source == "" || m.Type == MOUNT_TYPE_TMPFS {
4545
src = self.anonymous(m.Target)
4646
} else if m.Type == MOUNT_TYPE_VOLUME {
4747
src, err = self.named(m.Source)

0 commit comments

Comments
 (0)
This repository has been archived.