summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/directory.c')
-rw-r--r--mdk-stage1/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/directory.c b/mdk-stage1/directory.c
index a968b1996..9c467cc2c 100644
--- a/mdk-stage1/directory.c
+++ b/mdk-stage1/directory.c
@@ -170,7 +170,7 @@ enum return_type try_with_directory(char *directory, char *method_live, char *me
log_message("found the " DISTRIB_NAME " Installation, good news!");
#endif
- if (IS_RESCUE || ret != RETURN_OK) {
+ if (!KEEP_MOUNTED || ret != RETURN_OK) {
/* in rescue mode, we don't need the media anymore */
umount(IMAGE_LOCATION);
del_loop(loopdev);