From 23ad4c54181858aa61c954b057926db748e4b5ef Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 4 Nov 2003 12:35:55 +0000 Subject: in mandrake-move, mount cdrom as supermount --- mdk-stage1/mount.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mdk-stage1/mount.c') diff --git a/mdk-stage1/mount.c b/mdk-stage1/mount.c index 0b207c368..d5ecba619 100644 --- a/mdk-stage1/mount.c +++ b/mdk-stage1/mount.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -180,6 +181,14 @@ int my_mount(char *dev, char *location, char *fs, int force_rw) } } + if (!strcmp(fs, "supermount")) { + my_insmod("supermount", ANY_DRIVER_TYPE, NULL); + my_insmod("isofs", ANY_DRIVER_TYPE, NULL); + opts = alloca(500); + sprintf(opts, "dev=%s,fs=iso9660,tray_lock=always", dev); + dev = "none"; + } + #ifndef DISABLE_MEDIAS if (!strcmp(fs, "vfat")) { my_insmod("vfat", ANY_DRIVER_TYPE, NULL); -- cgit v1.2.1