Red Hat Bugzilla – Bug 176149
anaconda fills /etc/fstab with lies
Last modified: 2007-11-30 17:11:19 EST
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.
Steps to Reproduce:
1. Install FC4 or today's Raw Hide
2. Examine /etc/fstab.
/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
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
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.
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