summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-04 13:07:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-04 13:07:47 +0000
commitdf916d5432b5c6bf22d2075ceb5a27b46d9d38ab (patch)
tree9ad1419e7aef96b9f39abb3062cc9a767ab7a805 /mdk-stage1
parent66e056989f225fcf0edc751b40b17bf1c1190f39 (diff)
downloaddrakx-df916d5432b5c6bf22d2075ceb5a27b46d9d38ab.tar
drakx-df916d5432b5c6bf22d2075ceb5a27b46d9d38ab.tar.gz
drakx-df916d5432b5c6bf22d2075ceb5a27b46d9d38ab.tar.bz2
drakx-df916d5432b5c6bf22d2075ceb5a27b46d9d38ab.tar.xz
drakx-df916d5432b5c6bf22d2075ceb5a27b46d9d38ab.zip
more comment
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);
}