Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1439 from YongjiXie/pass-correct-mount-type-for-e…
Browse files Browse the repository at this point in the history
…phemeral-volumes

agent: pass correct mount type to agent for ephemeral volumes
  • Loading branch information
bergwolf authored Apr 16, 2019
2 parents edc77a0 + 2d422a8 commit 168665b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions virtcontainers/kata_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,8 @@ func (k *kataAgent) handleEphemeralStorage(mounts []specs.Mount) []*grpc.Storage
if mnt.Type == KataEphemeralDevType {
// Set the mount source path to a path that resides inside the VM
mounts[idx].Source = filepath.Join(ephemeralPath, filepath.Base(mnt.Source))
// Set the mount type to "bind"
mounts[idx].Type = "bind"

// Create a storage struct so that kata agent is able to create
// tmpfs backed volume inside the VM
Expand Down

0 comments on commit 168665b

Please sign in to comment.