Page MenuHomeFreeBSD

Use tmpfs in rc.initdiskless
ClosedPublic

Authored by stevek on Jun 9 2017, 1:06 AM.
Tags
None
Referenced Files
F132393762: D11106.id.diff
Thu, Oct 16, 1:13 PM
F132393747: D11106.id29680.diff
Thu, Oct 16, 1:12 PM
F132393744: D11106.id29364.diff
Thu, Oct 16, 1:12 PM
Unknown Object (File)
Thu, Oct 16, 1:27 AM
Unknown Object (File)
Tue, Oct 7, 6:46 AM
Unknown Object (File)
Wed, Sep 24, 1:48 AM
Unknown Object (File)
Sep 15 2025, 8:10 AM
Unknown Object (File)
Sep 11 2025, 7:39 PM

Details

Summary

Replace md(4) usage in diskless(8) script rc.initdiskless with tmpfs(5).
Need to multiply the size of the disk passed to mount_md by 512 as mdmfs expects number of 512-byte blocks while tmpfs size option wants number of bytes.

Test Plan

Booted a diskless image on Broadcom iProc ARM-based system and compared tmpfs(5) version with md(4) version to ensure correct operation.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable