diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-11-04 12:17:44 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-11-04 12:17:44 +0000 |
commit | 6ad10258484fe357eead6d62a93475bae6f001b2 (patch) | |
tree | bfce85eb64ee9d866ffac5e4c862515c5ca6f53c | |
parent | 35b60523ce6b2e32f33dee7a09ce505cc5512be6 (diff) | |
download | drakx-6ad10258484fe357eead6d62a93475bae6f001b2.tar drakx-6ad10258484fe357eead6d62a93475bae6f001b2.tar.gz drakx-6ad10258484fe357eead6d62a93475bae6f001b2.tar.bz2 drakx-6ad10258484fe357eead6d62a93475bae6f001b2.tar.xz drakx-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.c | 2 |
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 |