Bug 487926
| Summary: | Local filesystems not mounted with readonly-root | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ian Dall <ian> |
| Component: | initscripts | Assignee: | Bill Nottingham <notting> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 10 | CC: | notting, rvokal |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 8.86.3-1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-03-04 01:10:57 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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. http://admin.fedoraproject.org/updates/initscripts-8.86.1-1 initscripts-8.86.2-1 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/initscripts-8.86.2-1 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. |
Description of problem: With readonly root configured, local (non nfs) filesystems are not automounted. Version-Release number of selected component (if applicable): initscripts-8.86-1.i386 How reproducible: Always 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 Actual results: /mnt is not mounted and is not writeable. Expected results: /mnt should be mounted Additional info: 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 else action $"Mounting local filesystems: " mount -a -n -t nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev fi 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).