Page MenuHomeFreeBSD

rc.d/tmp: Fix dupe mount check
ClosedPublic

Authored by des on Jun 19 2026, 7:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 14, 10:58 PM
Unknown Object (File)
Fri, Oct 9, 10:57 AM
Unknown Object (File)
Fri, Oct 9, 12:32 AM
Unknown Object (File)
Mon, Oct 5, 5:35 AM
Unknown Object (File)
Mon, Oct 5, 4:58 AM
Unknown Object (File)
Mon, Oct 5, 4:21 AM
Unknown Object (File)
Sun, Oct 4, 3:40 AM
Unknown Object (File)
Thu, Oct 1, 5:49 PM
Subscribers

Details

Summary

Before mounting a new mfs on /tmp, we check if there already is one.
However, the dupe check only takes /dev/md[0-9]* into account, while the
default mfs type these days is tmpfs. Rewrite it to look for tmpfs as
well.

Note that the dupe check is redundant in the tmpmfs=auto case, but we
leave moving it for later.

PR: 182035
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable