From 752c59eb0ab37ca75bb410052aaf40514818cd54 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 14 Dec 2000 23:47:36 +0000 Subject: - do progressbar since it seems nobody can live without it - write real separation between cdrom, disk, and network code; have multiple targets for that issue - begin network code: network interface is up and runing (static IP only), network is configured --- mdk-stage1/mount.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mdk-stage1/mount.c') diff --git a/mdk-stage1/mount.c b/mdk-stage1/mount.c index 6de11b480..15533e716 100644 --- a/mdk-stage1/mount.c +++ b/mdk-stage1/mount.c @@ -31,6 +31,7 @@ #include "mount.h" +#ifndef DISABLE_MEDIAS /* WARNING: this won't work if the argument is not /dev/ based */ static int ensure_dev_exists(char *dev) { @@ -93,6 +94,7 @@ static int ensure_dev_exists(char *dev) return 0; } +#endif /* DISABLE_MEDIAS */ /* mounts, creating the device if needed+possible */ @@ -103,12 +105,14 @@ int my_mount(char *dev, char *location, char *fs) struct stat buf; int rc; +#ifndef DISABLE_MEDIAS rc = ensure_dev_exists(dev); if (rc != 0) { log_message("could not create required device file"); return -1; } +#endif log_message("mounting %s on %s as type %s", dev, location, fs); @@ -131,6 +135,7 @@ int my_mount(char *dev, char *location, char *fs) flags = MS_MGC_VAL; +#ifndef DISABLE_MEDIAS if (!strcmp(fs, "vfat")) { my_insmod("vfat"); opts = "check=relaxed"; @@ -140,6 +145,7 @@ int my_mount(char *dev, char *location, char *fs) my_insmod("isofs"); flags |= MS_RDONLY; } +#endif rc = mount(dev, location, fs, flags, opts); -- cgit v1.2.1