summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/mount.c')
-rw-r--r--mdk-stage1/mount.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/mdk-stage1/mount.c b/mdk-stage1/mount.c
index ef0c0f676..6de11b480 100644
--- a/mdk-stage1/mount.c
+++ b/mdk-stage1/mount.c
@@ -26,6 +26,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include "log.h"
+#include "modules.h"
#include "mount.h"
@@ -130,11 +131,15 @@ int my_mount(char *dev, char *location, char *fs)
flags = MS_MGC_VAL;
- if (!strcmp(fs, "vfat"))
+ if (!strcmp(fs, "vfat")) {
+ my_insmod("vfat");
opts = "check=relaxed";
-
- if (!strcmp(fs, "iso9660"))
+ }
+
+ if (!strcmp(fs, "iso9660")) {
+ my_insmod("isofs");
flags |= MS_RDONLY;
+ }
rc = mount(dev, location, fs, flags, opts);