From a51a17bd32e665bc3a4f34b0f91b3d65d7528b4d Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 28 Jan 2005 12:41:34 +0000 Subject: ensure switching between different install methods do not break due to IMAGE_LOCATION (/sysroot/tmp/image can be either symlink or a directory) --- mdk-stage1/stage1.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mdk-stage1/stage1.c') diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index 820c42273..0146622a2 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -342,6 +342,9 @@ static void method_select_and_prepare(void) #endif means[i] = NULL; + unlink(IMAGE_LOCATION); + rmdir(IMAGE_LOCATION); /* useful if we change the method, eg: we have automatic:cdrom but go back to nfs */ + results = ask_from_list_auto("Please choose the installation method.", means, &choice, "method", means_auto); if (results != RETURN_OK) -- cgit v1.2.1