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)
Sat, Aug 15, 9:01 AM
Unknown Object (File)
Sat, Aug 15, 9:01 AM
Unknown Object (File)
Wed, Aug 12, 11:37 PM
Unknown Object (File)
Wed, Aug 12, 6:33 PM
Unknown Object (File)
Mon, Aug 10, 11:07 AM
Unknown Object (File)
Mon, Aug 10, 8:04 AM
Unknown Object (File)
Sun, Aug 9, 4:52 PM
Unknown Object (File)
Sat, Aug 8, 4:05 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 74026
Build 70909: arc lint + arc unit