summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-02-19 23:48:35 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-02-19 23:48:35 +0000
commita7463f88ccd1e833fcecec5c76ac47c804e060c0 (patch)
tree1d3582c8a604eaa332f275ecc82a0028e4f4f929 /mdk-stage1
parentd47d20e62f9549266d4a92fb68ee6e38f37aaab4 (diff)
downloaddrakx-a7463f88ccd1e833fcecec5c76ac47c804e060c0.tar
drakx-a7463f88ccd1e833fcecec5c76ac47c804e060c0.tar.gz
drakx-a7463f88ccd1e833fcecec5c76ac47c804e060c0.tar.bz2
drakx-a7463f88ccd1e833fcecec5c76ac47c804e060c0.tar.xz
drakx-a7463f88ccd1e833fcecec5c76ac47c804e060c0.zip
try to print errno's stuff when symlink to /tmp/stage2 failed
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/stage1.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index e0e5f76a8..64753bdcf 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -353,8 +353,10 @@ int main(int argc, char **argv, char **env)
fatal_error("could not select an installation method");
if (!IS_RAMDISK) {
- if (symlink(IMAGE_LOCATION LIVE_LOCATION, STAGE2_LOCATION) != 0)
- fatal_error("symlink to " STAGE2_LOCATION " failed");
+ if (symlink(IMAGE_LOCATION LIVE_LOCATION, STAGE2_LOCATION) != 0) {
+ printf("symlink from " IMAGE_LOCATION LIVE_LOCATION " to " STAGE2_LOCATION " failed");
+ fatal_error(strerror(errno));
+ }
}
if (interactive_pid != 0)