summaryrefslogtreecommitdiffstats
path: root/loader/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader/init.c')
-rw-r--r--loader/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/init.c b/loader/init.c
index 495bae39b..8eaed3af2 100644
--- a/loader/init.c
+++ b/loader/init.c
@@ -347,7 +347,7 @@ void undoMount(struct unmountInfo * fs, int numFs, int this) {
printf("\t%s", fs[this].name);
/* don't need to unmount /tmp. it is busy anyway. */
if (!testing) {
- if (umount(fs[this].name) < 0) {
+ if (umount2(fs[this].name, 0) < 0) {
printf(" umount failed (%d)", errno);
} else {
printf(" done");