Bug 178113 - [rc.conf] tmpmfs rc.conf setting ignored
Summary: [rc.conf] tmpmfs rc.conf setting ignored
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2013-04-24 19:00 UTC by Richard
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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

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