From b64fc44a40ae1825df505fd7d6137a244b0fc72f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 4 Nov 2004 13:55:20 +0000 Subject: LIVE_LOCATION_REL doesn't exist anymore in MOVE --- mdk-stage1/directory.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mdk-stage1/directory.c b/mdk-stage1/directory.c index 5b0a201ec..fdefac5f1 100644 --- a/mdk-stage1/directory.c +++ b/mdk-stage1/directory.c @@ -158,14 +158,18 @@ enum return_type try_with_directory(char *directory, char *method_live, char *me /* LIVE install */ #ifdef MANDRAKE_MOVE if (access(IMAGE_LOCATION "/live_tree/etc/fstab", R_OK) && access(IMAGE_LOCATION "/live_tree.clp", R_OK)) { + stg1_error_message("I can't find the " DISTRIB_NAME " Distribution in the specified directory. " + "(I need the subdirectory " IMAGE_LOCATION ")\n" + "Here's a short extract of the files in the directory:\n" + "%s", extract_list_directory(IMAGE_LOCATION)); #else char p; if (access(IMAGE_LOCATION "/" LIVE_LOCATION_REL, R_OK)) { -#endif stg1_error_message("I can't find the " DISTRIB_NAME " Distribution in the specified directory. " "(I need the subdirectory " LIVE_LOCATION_REL ")\n" "Here's a short extract of the files in the directory:\n" "%s", extract_list_directory(IMAGE_LOCATION)); +#endif umount(IMAGE_LOCATION); del_loop(loopdev); return RETURN_BACK; -- cgit v1.2.1