Red Hat Bugzilla – Bug 487926
Local filesystems not mounted with readonly-root
Last modified: 2014-03-16 23:17:40 EDT
Description of problem:
With readonly root configured, local (non nfs) filesystems are not automounted.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Configure a machine with readonly-root.
2.Include "none /mnt tmpfs 0 0" in /etc/fstab
3.Boot into single usermode
/mnt is not mounted and is not writeable.
/mnt should be mounted
The particular problem of /tmp not being writeable is avoidable by ensuring that /tmp is in /etc/rwtab (which it is by default in the distribution). However, this problem applies to any other filesystem eg on a hard disk or usb stick or whatever.
The problem seems to be in /etc/rc.d/rc.sysinit, where:
# Mount all other filesystems (except for NFS and /proc, which is already
# mounted). Contrary to standard usage,
# filesystems are NOT unmounted in single user mode.
if [ "$READONLY" != "yes" ] ; then
action $"Mounting local filesystems: " mount -a -t nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev
action $"Mounting local filesystems: " mount -a -n -t nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev
Does not do the right thing when READONLY is "yes". It is hard to see what was meant here. I don't think you want to mount all the net work filesystems yet, but you certainly do want to mount any tmpfs, ext2 etc filesystems. I think the only reason for the conditional is to allow the "-n" option because /etc/mtab is not writeable.
I've been using "mount -a -n -t nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev" for the second arm of the conditional successfully.
Fedora 8 did not have this conditional at all (and would throw annoying error messages, but otherwise work).
It's a thinko in the patch.
Fixed in http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=0c224207525ff4279066abef35ae1a5b74a07a5a
initscripts-8.86.1-1 has been submitted as an update for Fedora 10.
initscripts-8.86.2-1 has been submitted as an update for Fedora 10.
initscripts-8.86.3-1 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.