Page MenuHomeFreeBSD

rc: run the zfs rc script before tmp
ClosedPublic

Authored by kevans on Sat, Jan 31, 4:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Feb 10, 4:12 AM
Unknown Object (File)
Tue, Feb 3, 5:20 PM
Unknown Object (File)
Tue, Feb 3, 4:04 PM
Unknown Object (File)
Tue, Feb 3, 5:19 AM
Unknown Object (File)
Sun, Feb 1, 12:38 AM
Unknown Object (File)
Sat, Jan 31, 7:16 PM
Unknown Object (File)
Sat, Jan 31, 7:09 PM
Unknown Object (File)
Sat, Jan 31, 5:33 PM
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