summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-07-13 08:37:12 +0000
committerOlivier Blin <oblin@mandriva.org>2004-07-13 08:37:12 +0000
commitc8f524a84ea36554d8aa84b24b44511a0e4c94a6 (patch)
tree9eb3abcb612c5e55a35b27e65b63ff154672c1fd /mdk-stage1
parentcc4117275a36d997ae9b937c82b550b7d093559d (diff)
downloaddrakx-c8f524a84ea36554d8aa84b24b44511a0e4c94a6.tar
drakx-c8f524a84ea36554d8aa84b24b44511a0e4c94a6.tar.gz
drakx-c8f524a84ea36554d8aa84b24b44511a0e4c94a6.tar.bz2
drakx-c8f524a84ea36554d8aa84b24b44511a0e4c94a6.tar.xz
drakx-c8f524a84ea36554d8aa84b24b44511a0e4c94a6.zip
umount nfs directory if an error occurs too
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c
index f1f5c1bf5..e9c8a6805 100644
--- a/mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -878,9 +878,9 @@ enum return_type nfs_prepare(void)
}
results = try_with_directory(nfs_own_mount, "nfs", "nfs-iso");
- if (results == RETURN_BACK)
+ if (results != RETURN_OK)
umount(nfs_own_mount);
- else if (results == RETURN_ERROR)
+ if (results == RETURN_ERROR)
return RETURN_ERROR;
}
while (results == RETURN_BACK);