From 890d160fcee9258d6079c64b51a67cccc596cc95 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 18 Dec 2000 21:16:09 +0000 Subject: add disk install support --- mdk-stage1/mount.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mdk-stage1/mount.c') diff --git a/mdk-stage1/mount.c b/mdk-stage1/mount.c index ade92adf5..93500a34f 100644 --- a/mdk-stage1/mount.c +++ b/mdk-stage1/mount.c @@ -120,17 +120,17 @@ int my_mount(char *dev, char *location, char *fs) if (stat(location, &buf)) { if (mkdir(location, 0755)) { - log_message("could not create location dir"); + log_perror("could not create location dir"); return -1; } } else if (!S_ISDIR(buf.st_mode)) { log_message("not a dir %s, will unlink and mkdir", location); if (unlink(location)) { - log_message("could not unlink %s", location); + log_perror("could not unlink"); return -1; } if (mkdir(location, 0755)) { - log_message("could not create location dir"); + log_perror("could not create location dir"); return -1; } } @@ -143,6 +143,10 @@ int my_mount(char *dev, char *location, char *fs) opts = "check=relaxed"; } + if (!strcmp(fs, "reiserfs")) { + my_insmod("reiserfs"); + } + if (!strcmp(fs, "iso9660")) { my_insmod("isofs"); flags |= MS_RDONLY; -- cgit v1.2.1