Bug 176149 - anaconda fills /etc/fstab with lies
Summary: anaconda fills /etc/fstab with lies
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 4
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Mike McLean
Depends On:
TreeView+ depends on / blocked
Reported: 2005-12-19 18:18 UTC by Nalin Dahyabhai
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-12-19 22:16:38 UTC
Type: ---

Attachments (Terms of Use)

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:

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

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