diff options
Diffstat (limited to 'mdk-stage1/mount.c')
-rw-r--r-- | mdk-stage1/mount.c | 10 |
1 files changed, 7 insertions, 3 deletions
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; |