summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-28 12:41:34 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-28 12:41:34 +0000
commita51a17bd32e665bc3a4f34b0f91b3d65d7528b4d (patch)
tree71c4df2baf5348f02a770ff8702780ed67bdcb6e /mdk-stage1
parent3aad8033db666a8416e5bab3796a22b32601058c (diff)
downloaddrakx-a51a17bd32e665bc3a4f34b0f91b3d65d7528b4d.tar
drakx-a51a17bd32e665bc3a4f34b0f91b3d65d7528b4d.tar.gz
drakx-a51a17bd32e665bc3a4f34b0f91b3d65d7528b4d.tar.bz2
drakx-a51a17bd32e665bc3a4f34b0f91b3d65d7528b4d.tar.xz
drakx-a51a17bd32e665bc3a4f34b0f91b3d65d7528b4d.zip
ensure switching between different install methods do not break due to IMAGE_LOCATION (/sysroot/tmp/image can be either symlink or a directory)
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/stage1.c3
1 files changed, 3 insertions, 0 deletions
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)