summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/cdrom.c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-05 13:27:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-05 13:27:02 +0000
commitb25b64e526e281cd04719d8f0765b445241117e5 (patch)
tree76810b02f32ba634c2ba712fedd9491c1e20b4d3 /mdk-stage1/cdrom.c
parentf3985ec83c291a8fd09d1147219a5c67905783fc (diff)
downloaddrakx-b25b64e526e281cd04719d8f0765b445241117e5.tar
drakx-b25b64e526e281cd04719d8f0765b445241117e5.tar.gz
drakx-b25b64e526e281cd04719d8f0765b445241117e5.tar.bz2
drakx-b25b64e526e281cd04719d8f0765b445241117e5.tar.xz
drakx-b25b64e526e281cd04719d8f0765b445241117e5.zip
- if you give nfs directory xxx, try to use xxx/ARCH
- handle cdroms with and without ARCH at the root and factorize the code into create_IMAGE_LOCATION()
Diffstat (limited to 'mdk-stage1/cdrom.c')
-rw-r--r--mdk-stage1/cdrom.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdk-stage1/cdrom.c b/mdk-stage1/cdrom.c
index 65220c597..89e5ef8dd 100644
--- a/mdk-stage1/cdrom.c
+++ b/mdk-stage1/cdrom.c
@@ -44,7 +44,9 @@ static int mount_that_cd_device(char * dev_name)
snprintf(device_fullname, sizeof(device_fullname), "/dev/%s", dev_name);
mount_result = my_mount(device_fullname, MEDIA_LOCATION, "iso9660", 0);
- symlink(MEDIA_LOCATION_REL "/" ARCH, IMAGE_LOCATION);
+
+ create_IMAGE_LOCATION(MEDIA_LOCATION);
+
return mount_result;
}