Skip to content

Commit

Permalink
[ws-daemon] mount nfs in workspace network (#20404)
Browse files Browse the repository at this point in the history
  • Loading branch information
iQQBot authored Nov 29, 2024
1 parent 0aabebc commit 55540b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ws-daemon/pkg/iws/iws.go
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ func (wbs *InWorkspaceServiceServer) MountNfs(ctx context.Context, req *api.Moun
}

log.WithField("source", req.Source).WithField("target", req.Target).WithField("staging", nodeStaging).WithField("args", req.Args).Info("Mounting nfs")
cmd := exec.CommandContext(ctx, "mount", "-t", "nfs4", "-o", req.Args, req.Source, nodeStaging)
cmd := exec.CommandContext(ctx, "nsenter", "-n", "-t", strconv.Itoa(int(supervisorPID)), "mount", "-t", "nfs4", "-o", req.Args, req.Source, nodeStaging)
cmd.Stderr = os.Stderr
cmd.Stdin = os.Stdin

Expand Down

0 comments on commit 55540b3

Please sign in to comment.