diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2021-02-18 18:21:01 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2022-01-05 15:34:30 +0100 |
commit | fa7cece91765ed48101d7fd5f281e4f129e0c048 (patch) | |
tree | 9f8c0aeb5bacdd4290ea5c4b5237906461df531f /mdk-stage1 | |
parent | 08b1d3996f89d923fc16dd7f60434d66955c162a (diff) | |
download | drakx-fa7cece91765ed48101d7fd5f281e4f129e0c048.tar drakx-fa7cece91765ed48101d7fd5f281e4f129e0c048.tar.gz drakx-fa7cece91765ed48101d7fd5f281e4f129e0c048.tar.bz2 drakx-fa7cece91765ed48101d7fd5f281e4f129e0c048.tar.xz drakx-fa7cece91765ed48101d7fd5f281e4f129e0c048.zip |
simplify: mount(8) will autoload the right module
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/mount.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/mdk-stage1/mount.c b/mdk-stage1/mount.c index 4e70f9c9d..178eb0a41 100644 --- a/mdk-stage1/mount.c +++ b/mdk-stage1/mount.c @@ -92,48 +92,9 @@ int my_mount(char *dev, char *location, char *fs, int force_rw) #ifndef DISABLE_MEDIAS if (!strcmp(fs, "vfat")) { - my_modprobe("nls_cp437", ANY_DRIVER_TYPE, NULL); - my_modprobe("nls_iso8859_1", ANY_DRIVER_TYPE, NULL); - my_modprobe("vfat", ANY_DRIVER_TYPE, NULL); opts = "check=relaxed"; } - - if (!strcmp(fs, "ntfs")) { - my_modprobe("ntfs", ANY_DRIVER_TYPE, NULL); - } - - if (!strcmp(fs, "exfat")) { - my_modprobe("exfat", ANY_DRIVER_TYPE, NULL); - } - - if (!strcmp(fs, "reiserfs")) - my_modprobe("reiserfs", ANY_DRIVER_TYPE, NULL); - - if (!strcmp(fs, "reiser4")) - my_modprobe("reiser4", ANY_DRIVER_TYPE, NULL); - - if (!strcmp(fs, "jfs")) - my_modprobe("jfs", ANY_DRIVER_TYPE, NULL); - - if (!strcmp(fs, "xfs")) - my_modprobe("xfs", ANY_DRIVER_TYPE, NULL); - - if (!strcmp(fs, "ext4")) - my_modprobe("ext4", ANY_DRIVER_TYPE, NULL); - - if (!strcmp(fs, "btrfs")) - my_modprobe("btrfs", ANY_DRIVER_TYPE, NULL); - #endif - if (!strcmp(fs, "iso9660")) - my_modprobe("isofs", ANY_DRIVER_TYPE, NULL); - -#ifndef DISABLE_NETWORK - if (!strcmp(fs, "nfs")) { - my_modprobe("nfs", ANY_DRIVER_TYPE, NULL); - } -#endif - char *cmd; rc = asprintf(&cmd, "mount %s %s -t %s -o %s%s > /dev/null 2>&1", dev, location, fs, (force_rw ? "" : "ro,"), (opts ? opts : "")); if (rc == -1) { |