Page MenuHomeFreeBSD

Use tmpfs in rc.initdiskless
ClosedPublic

Authored by stevek on Jun 9 2017, 1:06 AM.
Tags
None
Referenced Files
F169460108: D11106.id.diff
Tue, Sep 1, 2:38 PM
F169424773: D11106.id29680.diff
Tue, Sep 1, 12:31 PM
F169395590: D11106.id29680.diff
Tue, Sep 1, 10:14 AM
Unknown Object (File)
Mon, Aug 31, 12:33 PM
Unknown Object (File)
Mon, Aug 31, 11:38 AM
Unknown Object (File)
Mon, Aug 31, 8:37 AM
Unknown Object (File)
Sun, Aug 30, 1:30 PM
Unknown Object (File)
Sun, Aug 30, 12:43 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 Passed
Unit
No Test Coverage
Build Status
Buildable 9749
Build 10188: arc lint + arc unit