Bug 127072 - anaconda's mountLoopback doesn't handle vfat driver disks
Summary: anaconda's mountLoopback doesn't handle vfat driver disks
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: anaconda
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Mike McLean
URL:
Whiteboard:
: 165251 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-07-01 15:41 UTC by Charles Duffy
Modified: 2007-11-30 22:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-04-24 18:01:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Charles Duffy 2004-07-01 15:41:54 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Gecko/20040614 Netscape 7/0.8

Description of problem:
When using "driverdisk
--source=nfs:servername:/path/to/driverdisk.img", Anaconda fails to
use the drivers if the NFS share doesn't provide write access to
driverdisk.img.

loop6 is succesfully associated with driverdisk.img but the mount
itself fails. If I log in on tty2 and investigate, I find that "mount
/dev/loop6 /tmp/drivers" fails, and "mount -o ro /dev/loop6
/tmp/drivers" succeeds. This leads me to believe that the issue is
caused by the driver disk being mounted read-write; however, only
read-only access should be needed (and read-write is harmful as it
causes the mount to fail outright in the case of a read-only NFS volume).

Version-Release number of selected component (if applicable):
anaconda-9.1.2-2.RHEL

How reproducible:
Always

Steps to Reproduce:
1. Configure an NFS server with a read-only share hosting an Anaconda
driver disk.
2. Configure a Kickstart file which contains a directive akin to
"driverdisk --source=nfs:servername:/path/to/driverdisk.img".
3. Boot a system with the relevant kickstart file


Actual Results:  The NFS server is mounted, but the driver disk's
contents are not loaded. A message on tty3 indicates that the mount
failed.

Expected Results:  The drivers from the disk should have been loaded
by Anaconda.

Comment 1 Charles Duffy 2004-07-01 17:25:55 UTC
After further investigation, found my initial diagnosis to be mistaken
-- mountLoopback *does* mount partitions read-only by default. More to
follow.

Comment 2 Charles Duffy 2004-07-01 17:34:15 UTC
transferring <url> to a fd
mntloop loop6 on /tmp/drivers as /tmp/dd.img fd is 23
failed to mount loop: Invalid argument

However, I see a likely cause: The image is vfat, but mountLoopback
tries iso9660, ext2 and cramfs. Attempting a cramfs image instead to
see if this helps.

Comment 3 Charles Duffy 2004-07-01 17:44:57 UTC
Use of a vfat-based image was indeed the cause -- my initial
assessment was invalid. (I'm inclined to argue that lack of vfat
support in anaconda is still a bug; since the BOOT kernel supports
vfat, some driver disks have used this format, and dkms's mkdriverdisk
generates images in it, there's no excuse for mountLoopback not to try
it).

Comment 4 Charles Duffy 2004-07-01 17:48:32 UTC
Oops -- didn't mean to close it. Sorry 'bout that.

Comment 5 Jeremy Katz 2004-07-06 22:17:10 UTC
Fixed in CVS

Comment 6 Jeremy Katz 2005-08-08 22:10:33 UTC
*** Bug 165251 has been marked as a duplicate of this bug. ***

Comment 7 Jeremy Katz 2006-04-24 18:01:39 UTC
Mass-closing lots of old bugs which are in MODIFIED (and thus presumed to be
fixed).  If any of these are still a problem, please reopen or file a new bug
against the release which they're occurring in so they can be properly tracked.


Note You need to log in before you can comment on or make changes to this bug.