Page MenuHomeFreeBSD

rc.d/tmp: Fix dupe mount check
ClosedPublic

Authored by des on Jun 19 2026, 7:57 PM.
Tags
None
Referenced Files
F173496211: D57682.diff
Sat, Sep 26, 9:04 AM
Unknown Object (File)
Thu, Sep 24, 7:57 PM
Unknown Object (File)
Thu, Sep 24, 6:25 PM
Unknown Object (File)
Fri, Sep 11, 6:45 AM
Unknown Object (File)
Thu, Sep 10, 5:59 PM
Unknown Object (File)
Tue, Sep 8, 10:09 PM
Unknown Object (File)
Tue, Sep 8, 6:29 PM
Unknown Object (File)
Tue, Sep 8, 2:26 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