Skip to content

Commit 4cc5215

Browse files
committed
Add nfs need root password
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent bec7705 commit 4cc5215

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xhyve/xhyve.go

+2
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ func (d *Driver) Create() error {
320320

321321
// Setup NFS sharing
322322
if d.NFSShare {
323+
log.Infof("NFS share folder must be root. Please insert root password.")
323324
err = d.setupNFSShare()
324325
if err != nil {
325326
log.Errorf("NFS setup failed: %s", err.Error())
@@ -405,6 +406,7 @@ func (d *Driver) Remove() error {
405406
}
406407

407408
if d.NFSShare {
409+
log.Infof("Remove NFS share folder must be root. Please insert root password.")
408410
if _, err := nfsexports.Remove("", d.nfsExportIdentifier()); err != nil {
409411
log.Errorf("failed removing nfs share: %s", err.Error())
410412
}

0 commit comments

Comments
 (0)