summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-07-06 22:14:58 +0000
committerJeremy Katz <katzj@redhat.com>2004-07-06 22:14:58 +0000
commitca1e4081692ea530f6f54f6a3fc38d07db841a7e (patch)
treedcdb7e87e5ea647048adcec23df47cb7c0b936a0
parentcb283e7c87fa2e73abeb5bbf4d4a8eabde4589fd (diff)
downloadanaconda-ca1e4081692ea530f6f54f6a3fc38d07db841a7e.tar.gz
anaconda-ca1e4081692ea530f6f54f6a3fc38d07db841a7e.tar.xz
anaconda-ca1e4081692ea530f6f54f6a3fc38d07db841a7e.zip
try to mount loopback images as vfat too (#127072). could cause weirdness
if someone did something wrong, but they'll just get a different failure case. realistically, should probably change mountLoopback() to take a list of valid filesystems to try when mounting
-rw-r--r--loader2/method.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/loader2/method.c b/loader2/method.c
index 9170e3893..4fba582bd 100644
--- a/loader2/method.c
+++ b/loader2/method.c
@@ -120,12 +120,16 @@ int mountLoopback(char * fsystem, char * mntpoint, char * device) {
close(loopfd);
+ /* FIXME: really, mountLoopback() should take a list of "valid"
+ * filesystems for the specific type of image being mounted */
if (doPwMount(filename, mntpoint, "iso9660", 1,
0, NULL, NULL, 0, 0)) {
if (doPwMount(filename, mntpoint, "ext2", 1,
0, NULL, NULL, 0, 0)) {
if (doPwMount(filename, mntpoint, "cramfs", 1,
0, NULL, NULL, 0, 0)) {
+ if (doPwMount(filename, mntpoint, "vfat", 1,
+ 0, NULL, NULL, 0, 0)) {
logMessage("failed to mount loop: %s",
strerror(errno));
loopfd = open(filename, O_RDONLY);