Bug 178113

Summary: tmpmfs rc.conf setting ignored
Product: Base System Reporter: Richard <rsitze>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: grahamperrin
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Richard 2013-04-24 19:00:00 UTC
The system is being booted from a MD (MemDisk), i.e. from a CD ISO image, where:
* rc.conf contains: tmpmfs="AUTO" or "YES"
* the root file system is read-only
* the root file system contains /tmp

In this situation a new readable /tmp is not created.
This works with BSD 7.4, but no longer in 9.1

The error is in /etc/rc.d/tmp, where a new function 'mount_tmpmfs' fails to mount the desired device because a test to see if /tmp is not already on a 'md' device fails.

The obvious solution is to remove the check - but I presume it was added for a reason.  So the "correct" solution is not so trivial - would need to check that '/tmp' was on the same device as '/' ?
Comment 1 Richard 2013-04-24 19:43:26 UTC
WORK AROUND:

1. Remove use of rc.conf :: tmpmfs
2. Add something like the following to fstab:
     md    /tmp    mfs    rw,-S,-s=32M    0    0
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:22 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2023-01-08 12:38:23 UTC
Triage: removing [tagging] from the summary line. 

<https://wiki.freebsd.org/Bugzilla>