fix(cli): \`minikube start --mount --mountsting\` without wirte permission

pull/3113/head
NsLib 2018-04-03 14:30:05 +08:00 committed by dlorenc
parent 9578f3f691
commit a7a5ede68e
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ func GetMountCleanupCommand(path string) string {
var mountTemplate = `
sudo mkdir -p {{.Path}} || true;
sudo mount -t 9p -o trans=tcp,port={{.Port}},dfltuid={{.UID}},dfltgid={{.GID}},version={{.Version}},msize={{.Msize}} {{.IP}} {{.Path}};
sudo chmod 775 {{.Path}};`
sudo chmod 775 {{.Path}} || true;`
func GetMountCommand(ip net.IP, path, port, mountVersion string, uid, gid, msize int) (string, error) {
t := template.Must(template.New("mountCommand").Parse(mountTemplate))