summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-12-02 18:01:00 +0000
committerOlivier Blin <oblin@mandriva.org>2005-12-02 18:01:00 +0000
commit81f7cbbdc28fe9bb5b291e4bb82aa96b00e27d12 (patch)
treef74ba21eb4122269ae53f371d0ed9e54d76242a2
parentce655000bdd2bb37c0213c97adae657a71c8d856 (diff)
downloaddrakx-81f7cbbdc28fe9bb5b291e4bb82aa96b00e27d12.tar
drakx-81f7cbbdc28fe9bb5b291e4bb82aa96b00e27d12.tar.gz
drakx-81f7cbbdc28fe9bb5b291e4bb82aa96b00e27d12.tar.bz2
drakx-81f7cbbdc28fe9bb5b291e4bb82aa96b00e27d12.tar.xz
drakx-81f7cbbdc28fe9bb5b291e4bb82aa96b00e27d12.zip
support jfs and xfs
-rw-r--r--mdk-stage1/mount.c6
-rw-r--r--mdk-stage1/tools.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/mdk-stage1/mount.c b/mdk-stage1/mount.c
index 40b94a8ec..71d6f111f 100644
--- a/mdk-stage1/mount.c
+++ b/mdk-stage1/mount.c
@@ -203,6 +203,12 @@ int my_mount(char *dev, char *location, char *fs, int force_rw)
if (!strcmp(fs, "reiserfs"))
my_insmod("reiserfs", ANY_DRIVER_TYPE, NULL, 1);
+ if (!strcmp(fs, "jfs"))
+ my_insmod("jfs", ANY_DRIVER_TYPE, NULL, 1);
+
+ if (!strcmp(fs, "xfs"))
+ my_insmod("xfs", ANY_DRIVER_TYPE, NULL, 1);
+
#endif
if (!strcmp(fs, "iso9660"))
my_insmod("isofs", ANY_DRIVER_TYPE, NULL, 1);
diff --git a/mdk-stage1/tools.c b/mdk-stage1/tools.c
index 55db7b158..36185bcfb 100644
--- a/mdk-stage1/tools.c
+++ b/mdk-stage1/tools.c
@@ -458,6 +458,8 @@ int try_mount(char * dev, char * location)
my_mount(device_fullname, location, "vfat", 0) == -1 &&
my_mount(device_fullname, location, "ntfs", 0) == -1 &&
my_mount(device_fullname, location, "reiserfs", 0) == -1 &&
+ my_mount(device_fullname, location, "jfs", 0) == -1 &&
+ my_mount(device_fullname, location, "xfs", 0) == -1 &&
my_mount(device_fullname, location, "iso9660", 0) == -1) {
return 1;
}