aboutsummaryrefslogtreecommitdiff
path: root/release/sysinstall/nfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'release/sysinstall/nfs.c')
-rw-r--r--release/sysinstall/nfs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/release/sysinstall/nfs.c b/release/sysinstall/nfs.c
index 53b3f42b7bbec..f9a557239a92f 100644
--- a/release/sysinstall/nfs.c
+++ b/release/sysinstall/nfs.c
@@ -48,6 +48,7 @@ Boolean
mediaInitNFS(Device *dev)
{
Device *netDevice = (Device *)dev->private;
+ WINDOW *w = savescr();
if (NFSMounted)
return TRUE;
@@ -65,11 +66,13 @@ mediaInitNFS(Device *dev)
msgConfirm("Error mounting %s on %s: %s.", dev->name, mountpoint, strerror(errno));
if (netDevice)
netDevice->shutdown(netDevice);
+ restorescr(w);
return FALSE;
}
NFSMounted = TRUE;
if (isDebug())
msgDebug("Mounted NFS device %s onto %s\n", dev->name, mountpoint);
+ restorescr(w);
return TRUE;
}
@@ -85,7 +88,7 @@ mediaShutdownNFS(Device *dev)
if (!NFSMounted)
return;
- msgNotify("Unmounting NFS partition on %s", mountpoint);
+ msgDebug("Unmounting NFS partition on %s", mountpoint);
if (unmount(mountpoint, MNT_FORCE) != 0)
msgConfirm("Could not unmount the NFS partition: %s", strerror(errno));
NFSMounted = FALSE;