summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/mount.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2000-12-12 21:05:30 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2000-12-12 21:05:30 +0000
commit2b2914cc04a93ca362e4eb3663061c3039aa4049 (patch)
tree3f8dbeae1bc114e58f3246cd76b9b0156392b720 /mdk-stage1/mount.c
parent7852f76ee05551c05a4f833f9a55bec15f44f85d (diff)
downloaddrakx-2b2914cc04a93ca362e4eb3663061c3039aa4049.tar
drakx-2b2914cc04a93ca362e4eb3663061c3039aa4049.tar.gz
drakx-2b2914cc04a93ca362e4eb3663061c3039aa4049.tar.bz2
drakx-2b2914cc04a93ca362e4eb3663061c3039aa4049.tar.xz
drakx-2b2914cc04a93ca362e4eb3663061c3039aa4049.zip
- add pci probing feature
- add listing of available modules and insmod'ing on user request - make rescue-stage2 working
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);