diff options
Diffstat (limited to 'mdk-stage1/mount.c')
-rw-r--r-- | mdk-stage1/mount.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <stdlib.h> #include <unistd.h> #include <string.h> +#include <stdio.h> #include <sys/mount.h> #include <sys/stat.h> #include <sys/types.h> @@ -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); |