summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-04 12:17:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-04 12:17:44 +0000
commit6ad10258484fe357eead6d62a93475bae6f001b2 (patch)
treebfce85eb64ee9d866ffac5e4c862515c5ca6f53c
parent35b60523ce6b2e32f33dee7a09ce505cc5512be6 (diff)
downloaddrakx-backup-do-not-use-6ad10258484fe357eead6d62a93475bae6f001b2.tar
drakx-backup-do-not-use-6ad10258484fe357eead6d62a93475bae6f001b2.tar.gz
drakx-backup-do-not-use-6ad10258484fe357eead6d62a93475bae6f001b2.tar.bz2
drakx-backup-do-not-use-6ad10258484fe357eead6d62a93475bae6f001b2.tar.xz
drakx-backup-do-not-use-6ad10258484fe357eead6d62a93475bae6f001b2.zip
create STAGE2_LOCATION symlink if it is not a directory (well more precisely when it doesn't exist)
-rw-r--r--mdk-stage1/stage1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index efe50cddd..de2dc037b 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -661,7 +661,7 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused))
method_select_and_prepare();
#ifndef MANDRAKE_MOVE
- if (!IS_RAMDISK)
+ if (access(STAGE2_LOCATION, R_OK) != 0)
if (symlink(IMAGE_LOCATION_REAL "/" LIVE_LOCATION_REL, STAGE2_LOCATION) != 0)
log_perror("symlink from " IMAGE_LOCATION_REAL "/" LIVE_LOCATION_REL " to " STAGE2_LOCATION " failed");
#endif