Bug 176149

Summary: anaconda fills /etc/fstab with lies
Product: [Fedora] Fedora Reporter: Nalin Dahyabhai <nalin>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-12-19 22:16:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Nalin Dahyabhai 2005-12-19 18:18:53 UTC
Description of problem:
After installing FC4, I noticed that /etc/fstab lists bogus block special device
names on the lines which direct mount to mount the kernel's pseudo-filesystems.
 This is needlessly confusing.

How reproducible:
Always

Steps to Reproduce:
1. Install FC4 or today's Raw Hide
2. Examine /etc/fstab.
  
Actual results:
  /dev/devpts       /dev/pts                devpts  gid=5,mode=620  0 0
  /dev/shm          /dev/shm                tmpfs   defaults        0 0
  /dev/proc         /proc                   proc    defaults        0 0
  /dev/sys          /sys                    sysfs   defaults        0 0

Expected results:
  none             /dev/pts                devpts  gid=5,mode=620  0 0
  none             /dev/shm                tmpfs   defaults        0 0
  none             /proc                   proc    defaults        0 0
  none             /sys                    sysfs   defaults        0 0

Additional information:
The mount(8) man page suggests "proc" instead of "none" for procfs, and it might
be better to follow suit for the other pseudo-filesystems.

Comment 1 David Cantrell 2005-12-19 22:16:38 UTC
Both fstab(5) and mount(8) suggest "proc" for procfs, so that's what I used. 
They note that the value here is arbitrary for pseudo filesystems, but setting
it to something other than none can be useful when reading log messages.  I set
what I think are reasonable standards to follow:

proc for /proc
sysfs for /sys
devpts for /dev/pts
tmpfs for /dev/shm