summaryrefslogtreecommitdiffstats
path: root/loader/method.c
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-01-05 12:41:51 -0500
committerChris Lumens <clumens@redhat.com>2009-01-05 12:41:51 -0500
commit9cf3eb99ef5dcc5b51c344a3ca6020189ed34488 (patch)
treee7fea89355eac751905d4530f4c3fe221867abff /loader/method.c
parentac12ea3b8174797616e738d141ca847557ac0e06 (diff)
downloadanaconda-9cf3eb99ef5dcc5b51c344a3ca6020189ed34488.tar.gz
anaconda-9cf3eb99ef5dcc5b51c344a3ca6020189ed34488.tar.xz
anaconda-9cf3eb99ef5dcc5b51c344a3ca6020189ed34488.zip
Use mount -t auto instead of passing a list of valid fstypes (#477328).
Diffstat (limited to 'loader/method.c')
-rw-r--r--loader/method.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/loader/method.c b/loader/method.c
index b72b12e16..d1ce27699 100644
--- a/loader/method.c
+++ b/loader/method.c
@@ -76,7 +76,6 @@ int umountLoopback(char * mntpoint, char * device) {
}
int mountLoopback(char *fsystem, char *mntpoint, char *device) {
- char *fstypes[] = {"iso9660", "ext2", "squashfs", "cramfs", "vfat", NULL};
char *opts, *err = NULL;
if (device == NULL) {
@@ -94,7 +93,7 @@ int mountLoopback(char *fsystem, char *mntpoint, char *device) {
abort();
}
- if (doMultiMount(fsystem, mntpoint, fstypes, opts, &err)) {
+ if (doPwMount(fsystem, mntpoint, "auto", opts, &err)) {
logMessage(ERROR, "failed to mount loopback device %s on %s as %s: %s",
device, mntpoint, fsystem, err);
return LOADER_ERROR;
@@ -469,11 +468,10 @@ int copyFileAndLoopbackMount(int fd, char * dest, char * device, char * mntpoint
int getFileFromBlockDevice(char *device, char *path, char * dest) {
int rc;
char file[4096];
- char *fstypes[] = {"vfat", "ext2", "iso9660", NULL};
logMessage(INFO, "getFileFromBlockDevice(%s, %s)", device, path);
- if (doMultiMount(device, "/tmp/mnt", fstypes, "ro", NULL)) {
+ if (doPwMount(device, "/tmp/mnt", "auto", "ro", NULL)) {
logMessage(ERROR, "failed to mount /dev/%s: %m", device);
return 2;
}