From a7463f88ccd1e833fcecec5c76ac47c804e060c0 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 19 Feb 2001 23:48:35 +0000 Subject: try to print errno's stuff when symlink to /tmp/stage2 failed --- mdk-stage1/stage1.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mdk-stage1/stage1.c') 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) -- cgit v1.2.1