Bug 618957

Summary: ISO images listed in fstab are mounted twice at boot.
Product: [Fedora] Fedora Reporter: Robert de Bock <robert>
Component: util-linux-ngAssignee: Karel Zak <kzak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 13CC: extras-orphan, kzak, notting
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: util-linux-ng-2.17.2-7.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-05 23:33:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert de Bock 2010-07-28 07:54:33 UTC
Description of problem:
If an ISO image is listed in /etc/fstab, the startup procedure tries to mount it twice during boot.


Version-Release number of selected component (if applicable):
Fedora Core 13

How reproducible:
Add this to your /etc/fstab and reboot:
/var/www/html/Fedora-13-x86_64-DVD.iso /var/www/html/kickstart/fedora/13/x86_64 iso9660 loop,ro 0 0

Steps to Reproduce:
1. Download an ISO, put it on your harddrive.
2. Edit fstab to mount that downloaded ISO.
3. Reboot.
  
Actual results:
During boot, you will see the ISO's being mounted twice:
...
Checking filesystems
Fedora-13-x86_64: clean, 128566/3678208 files, 6525382/14704640 blocks
...
Mounting other filesystems:  mount: according to mtab /var/www/html/Fedora-13-x86_64-DVD.iso is already mounted on /var/www/html/kickstart/fedora/13/x86_64 as loop
...

Expected results:
No errors during boot up.

Additional info:
Here are other users having a similar issue on FC 12: http://lists.fedoraproject.org/pipermail/users/2009-December/095116.html

I think the error can be pinpointed here:
In /etc/rc.sysinit, there is a line:
mount -a -t nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev
In /etc/init.d/netfs, there is a line:
action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs

Both lines when ran manually after a boot display this error:
mount: according to mtab /var/www/html/Fedora-13-x86_64-DVD.iso is already mounted on /var/www/html/kickstart/fedora/13/x86_64 as loop

Regards

Robert de Bock.

Comment 1 Bill Nottingham 2010-07-28 19:22:49 UTC
Looks like it's possibly an accounting error in util-linux/mount.

Comment 2 Karel Zak 2010-07-29 14:44:19 UTC
This is side-effect of auto-clear loop devices. Fixed in upstream repository, the bugfix will be available in Fedora ASAP.

Comment 3 Fedora Update System 2010-08-02 09:18:00 UTC
util-linux-ng-2.17.2-7.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/util-linux-ng-2.17.2-7.fc13

Comment 4 Fedora Update System 2010-08-02 10:21:25 UTC
util-linux-ng-2.18-2.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/util-linux-ng-2.18-2.fc14

Comment 5 Fedora Update System 2010-08-03 00:34:18 UTC
util-linux-ng-2.17.2-7.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update util-linux-ng'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/util-linux-ng-2.17.2-7.fc13

Comment 6 Fedora Update System 2010-08-03 02:13:27 UTC
util-linux-ng-2.18-2.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update util-linux-ng'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/util-linux-ng-2.18-2.fc14

Comment 7 Fedora Update System 2010-08-05 23:33:39 UTC
util-linux-ng-2.17.2-7.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.