Page MenuHomeFreeBSD

rc: run the zfs rc script before tmp
ClosedPublic

Authored by kevans on Jan 31 2026, 4:47 AM.
Tags
None
Referenced Files
F167088805: D54995.diff
Wed, Aug 19, 12:02 AM
F167018440: D54995.id170828.diff
Tue, Aug 18, 3:05 PM
F167013619: D54995.id170828.diff
Tue, Aug 18, 2:25 PM
Unknown Object (File)
Thu, Aug 13, 11:10 AM
Unknown Object (File)
Thu, Aug 13, 9:43 AM
Unknown Object (File)
Wed, Aug 12, 7:26 PM
Unknown Object (File)
Wed, Aug 12, 12:42 AM
Unknown Object (File)
Tue, Aug 11, 3:15 AM
Subscribers

Details

Summary

The tmp rc script has much the same problem that the var does: it wants
to test if /tmp is writable, and mount a tmpfs if it's not. This means
that we actually want our zfs datasets mounted first, because we might
have a /tmp dataset that changes the story.

The ordering problem is particularly noticable with a r/o zfs root,
since the write test will fail and we'll mount a tmpfs that later gets
covered by our /tmp dataset. If that /tmp dataset inherited readonly,
then we're still in trouble.

This also fixes tmpmfs=yes, which would again get covered by a zfs
dataset with the existing ordering.

Diff Detail

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