summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/mount.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2000-12-18 21:16:09 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2000-12-18 21:16:09 +0000
commit890d160fcee9258d6079c64b51a67cccc596cc95 (patch)
tree7de458e05dcd401773f7918d30f6a6140d8c3941 /mdk-stage1/mount.c
parent478632060840a9dd32a64325d59819bd2025217a (diff)
downloaddrakx-backup-do-not-use-890d160fcee9258d6079c64b51a67cccc596cc95.tar
drakx-backup-do-not-use-890d160fcee9258d6079c64b51a67cccc596cc95.tar.gz
drakx-backup-do-not-use-890d160fcee9258d6079c64b51a67cccc596cc95.tar.bz2
drakx-backup-do-not-use-890d160fcee9258d6079c64b51a67cccc596cc95.tar.xz
drakx-backup-do-not-use-890d160fcee9258d6079c64b51a67cccc596cc95.zip
add disk install support
Diffstat (limited to 'mdk-stage1/mount.c')
-rw-r--r--mdk-stage1/mount.c10
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;