summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/cdrom.c1
-rw-r--r--mdk-stage1/directory.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/mdk-stage1/cdrom.c b/mdk-stage1/cdrom.c
index c6f8455f7..acb202628 100644
--- a/mdk-stage1/cdrom.c
+++ b/mdk-stage1/cdrom.c
@@ -69,6 +69,7 @@ static enum return_type do_with_device(char * dev_name, char * dev_model)
load_ramdisk(); /* we don't care about return code, we'll do it live if we failed */
if (IS_RESCUE)
+ /* in rescue mode, we don't need the media anymore */
umount(IMAGE_LOCATION);
#endif
diff --git a/mdk-stage1/directory.c b/mdk-stage1/directory.c
index 05beed1bc..5b0a201ec 100644
--- a/mdk-stage1/directory.c
+++ b/mdk-stage1/directory.c
@@ -184,6 +184,7 @@ enum return_type try_with_directory(char *directory, char *method_live, char *me
#endif
if (IS_RESCUE) {
+ /* in rescue mode, we don't need the media anymore */
umount(IMAGE_LOCATION);
del_loop(loopdev);
}