macos: print load_osxfuse hint if fuse.NewServer fails
Currently neither gocryptfs nor go-fuse automatically call load_osxfuse if the /dev/osxfuse* device(s) do not exist. At least tell the user what to do. See https://github.com/rfjakob/gocryptfs/issues/124 for user pain.
This commit is contained in:
parent
9f8e19b856
commit
849ec10081
3
mount.go
3
mount.go
@ -337,6 +337,9 @@ func initFuseFrontend(key []byte, args *argContainer, confFile *configfile.ConfF
|
||||
srv, err := fuse.NewServer(conn.RawFS(), args.mountpoint, &mOpts)
|
||||
if err != nil {
|
||||
tlog.Fatal.Printf("fuse.NewServer failed: %v", err)
|
||||
if runtime.GOOS == "darwin" {
|
||||
tlog.Info.Printf("Maybe you should run: /Library/Filesystems/osxfuse.fs/Contents/Resources/load_osxfuse")
|
||||
}
|
||||
os.Exit(exitcodes.FuseNewServer)
|
||||
}
|
||||
srv.SetDebug(args.fusedebug)
|
||||
|
Loading…
Reference in New Issue
Block a user