Bug 182035

Summary: /etc/rc.d/tmp can't create tmpmfs on root-mfs
Product: Base System Reporter: Harald Schmalzbauer <freebsd>
Component: miscAssignee: freebsd-bugs mailing list <bugs>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Description Flags
file.diff none

Description Harald Schmalzbauer 2013-09-12 12:20:00 UTC
	On startup, /etc/rc.d/tmp checks if /tmp is writable, and if not,
creates a memory-disk filesystem for /tmp.
Before actually creating, there's an additional check to see if /tmp is
already a memory-disk, which returns false positive, if the
root filesystem is a memory-disk!

How-To-Repeat: 	Boot any setup with root_mfs read-only, and leave tmpmfs="AUTO".
/etc/rc.d/tmp will recognize that /tmp is not writable, but refuses to create
the memorydisk, because 'df' with '/tmp'  and 'md[0-9]' as regex returns
false positive.
Comment 1 Hiroki Sato freebsd_committer 2013-09-12 12:29:50 UTC
Responsible Changed
From-To: freebsd-bugs->hrs

I'll take this.
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:45 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