summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-02-18 14:42:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-02-18 14:42:52 +0000
commit5f0df53ec4e4ecc45adf1be0280f534b7a00bb2b (patch)
tree1e46493b3e53c333762f0ae61ed4cf36323e7581
parent8f6033d284aba14c73e5357d63404f43456d747d (diff)
downloaddrakx-5f0df53ec4e4ecc45adf1be0280f534b7a00bb2b.tar
drakx-5f0df53ec4e4ecc45adf1be0280f534b7a00bb2b.tar.gz
drakx-5f0df53ec4e4ecc45adf1be0280f534b7a00bb2b.tar.bz2
drakx-5f0df53ec4e4ecc45adf1be0280f534b7a00bb2b.tar.xz
drakx-5f0df53ec4e4ecc45adf1be0280f534b7a00bb2b.zip
fix using the mirror tree when there is an iso at the root of the mirror but we don't use it (or can't use it)
-rw-r--r--mdk-stage1/directory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdk-stage1/directory.c b/mdk-stage1/directory.c
index dd4206986..a968b1996 100644
--- a/mdk-stage1/directory.c
+++ b/mdk-stage1/directory.c
@@ -140,6 +140,8 @@ enum return_type try_with_directory(char *directory, char *method_live, char *me
} else {
int offset = strncmp(location_full, IMAGE_LOCATION_DIR, sizeof(IMAGE_LOCATION_DIR) - 1) == 0 ? sizeof(IMAGE_LOCATION_DIR) - 1 : 0;
log_message("assuming %s is a mirror tree", location_full + offset);
+
+ rmdir(IMAGE_LOCATION); /* useful if we loopback mounted it */
symlink(location_full + offset, IMAGE_LOCATION);
add_to_env("METHOD", method_live);
}