From nobody@FreeBSD.org  Wed Apr 24 17:56:47 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 5AC4E526
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Apr 2013 17:56:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 4D3EB132E
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Apr 2013 17:56:47 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r3OHulUD006772
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Apr 2013 17:56:47 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r3OHulqn006771;
	Wed, 24 Apr 2013 17:56:47 GMT
	(envelope-from nobody)
Message-Id: <201304241756.r3OHulqn006771@red.freebsd.org>
Date: Wed, 24 Apr 2013 17:56:47 GMT
From: Richard <rsitze@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: tmpmfs rc.conf setting ignored
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         178113
>Category:       conf
>Synopsis:       [rc.conf] tmpmfs rc.conf setting ignored
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 24 18:00:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sun May 12 00:57:23 UTC 2013
>Originator:     Richard
>Release:        9.1
>Organization:
>Environment:
FreeBSD graphite 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
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 '/' ?
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: "Richard A. Sitze" <rsitze@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/178113: tmpmfs rc.conf setting ignored
Date: Wed, 24 Apr 2013 13:43:26 -0500

 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
 
>Unformatted:
