From b091a52e9f0c5eddddccfd5a655496577680b63c Mon Sep 17 00:00:00 2001 From: Robert Kroeger Date: Wed, 26 Nov 2014 09:28:12 -0800 Subject: [PATCH] Use the absolute diskutil path for unmounting Unmounting a FUSE volume on Darwin fails if diskutil is not on one's path. This is not the default on MacOS. Make the path absolute so that FUSE volumes unmount successfully. Change-Id: I255be19b5b12e3ebecffc6d29dc77b6504c27f1c --- pkg/fs/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/fs/util.go b/pkg/fs/util.go index eec36f485..c158aa509 100644 --- a/pkg/fs/util.go +++ b/pkg/fs/util.go @@ -29,7 +29,7 @@ func Unmount(point string) error { var cmd *exec.Cmd switch runtime.GOOS { case "darwin": - cmd = exec.Command("diskutil", "umount", "force", point) + cmd = exec.Command("/usr/sbin/diskutil", "umount", "force", point) case "linux": cmd = exec.Command("fusermount", "-u", point) default: