Bug 750506

Summary: /etc/filesystems does not contain 'ext4'
Product: [Fedora] Fedora Reporter: Daniel Berrangé <berrange>
Component: setupAssignee: Ondrej Vasik <ovasik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: kgrindley, ovasik, pknirsch
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: setup-2.8.33-2.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 771388 (view as bug list) Environment:
Last Closed: 2012-01-07 23:05:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 771388    

Description Daniel Berrangé 2011-11-01 12:10:01 UTC
Description of problem:

The mount command may use /etc/filesystems for mounting filesystems with type 'auto':

 [quote mount(8)]
              If  no  -t option is given, or if the auto type
              is specified,  mount  will  try  to  guess  the
              desired  type.   Mount  uses  the blkid or vol‐
              ume_id  library  for  guessing  the  filesystem
              type;  if  that  does not turn up anything that
              looks familiar, mount will try to read the file
              /etc/filesystems,  or,  if that does not exist,
              /proc/filesystems.  All of the filesystem types
              listed  there  will  be tried, except for those
              that are labeled "nodev"  (e.g.,  devpts,  proc
              and  nfs).   If /etc/filesystems ends in a line
              with  a  single  *  only,   mount   will   read
              /proc/filesystems afterwards.
 [/quote]

The setup RPM creates an /etc/filesystems which only contains

  # cat /etc/filesystems 
  ext3
  ext2
  nodev proc
  nodev devpts
  iso9660
  vfat
  hfs
  hfsplus


Since /etc/filesystems exists, and does not contain '*', /proc/filesystems will never be used.

Ordinarily libblkid would detect the filesystem type, so /etc/filesystems will not be consulted, but if it is consulted, it'll miss many modern filesystems, in particular 'ext4', but also 'brtfs'

Since ext4 is the default Fedora filesystem, it should really be included in /etc/filesystems. Alternatively appending a '*' would let it fallback to using /proc/filesystems.

Version-Release number of selected component (if applicable):
setup-2.8.31-2.fc15.noarch

How reproducible:
N/A

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Ondrej Vasik 2011-11-02 13:26:01 UTC
Thanks for the report, fixed in rawhide(ext4 added), setup-2.8.42-1.fc17 ... do you want the update in f15 or rawhide fix is enough?

Comment 2 Daniel Berrangé 2011-11-02 13:34:33 UTC
rawhide is sufficient for me

Comment 3 Ondrej Vasik 2011-11-02 13:46:49 UTC
Ok, thanks for quick reply, closing RAWHIDE.

Comment 4 Ondrej Vasik 2011-12-23 10:06:46 UTC
*** Bug 769962 has been marked as a duplicate of this bug. ***

Comment 5 Ondrej Vasik 2011-12-23 10:14:37 UTC
Reopening, will fix that in F15/F16 as well.

Comment 6 Fedora Update System 2012-01-03 12:09:46 UTC
setup-2.8.36-3.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/setup-2.8.36-3.fc16

Comment 7 Fedora Update System 2012-01-03 12:11:01 UTC
setup-2.8.33-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/setup-2.8.33-2.fc15

Comment 8 Karl Grindley 2012-01-03 15:09:59 UTC
also broken in RHEL6

Comment 9 Fedora Update System 2012-01-04 01:58:47 UTC
Package setup-2.8.36-3.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing setup-2.8.36-3.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0085/setup-2.8.36-3.fc16
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2012-01-07 23:05:54 UTC
setup-2.8.36-3.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2012-01-30 21:00:50 UTC
setup-2.8.33-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.