From 5f0df53ec4e4ecc45adf1be0280f534b7a00bb2b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 18 Feb 2005 14:42:52 +0000 Subject: 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) --- mdk-stage1/directory.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mdk-stage1') 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); } -- cgit v1.2.1