Bug 182035 - /etc/rc.d/tmp can't create tmpmfs on root-mfs
Summary: /etc/rc.d/tmp can't create tmpmfs on root-mfs
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2013-09-12 12:20 UTC by Harald Schmalzbauer
Modified: 2017-12-31 22:27 UTC (History)
0 users

See Also:

file.diff (350 bytes, patch)
2013-09-12 12:20 UTC, Harald Schmalzbauer
no flags Details | Diff

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