summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-04 12:40:18 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-04 12:40:18 +0000
commitbb8b29ddc15c9cc3c200b0a4d1b51042663e12f4 (patch)
treec112bd3df260876191e39a89547054af9b5824da
parenta5c93e59d88432ff46f6aceefad79baebbe7aa05 (diff)
downloaddrakx-bb8b29ddc15c9cc3c200b0a4d1b51042663e12f4.tar
drakx-bb8b29ddc15c9cc3c200b0a4d1b51042663e12f4.tar.gz
drakx-bb8b29ddc15c9cc3c200b0a4d1b51042663e12f4.tar.bz2
drakx-bb8b29ddc15c9cc3c200b0a4d1b51042663e12f4.tar.xz
drakx-bb8b29ddc15c9cc3c200b0a4d1b51042663e12f4.zip
STAGE2_LOCATION symlink is now relative instead of absolute
(relies on the fact that STAGE2_LOCATION and IMAGE_LOCATION are both in /tmp in non MOVE)
-rw-r--r--mdk-stage1/stage1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index 021437f00..7d8234f1e 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -662,8 +662,8 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused))
#ifndef MANDRAKE_MOVE
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");
+ if (symlink(IMAGE_LOCATION_REL "/" LIVE_LOCATION_REL, STAGE2_LOCATION) != 0)
+ log_perror("symlink from " IMAGE_LOCATION_REL "/" LIVE_LOCATION_REL " to " STAGE2_LOCATION " failed");
#endif
if (interactive_pid != 0)