Page MenuHomeFreeBSD

Use tmpfs in rc.initdiskless
ClosedPublic

Authored by stevek on Jun 9 2017, 1:06 AM.
Tags
None
Referenced Files
F174215226: D11106.id29364.diff
Thu, Oct 1, 10:29 AM
F174205056: D11106.id29680.diff
Thu, Oct 1, 8:43 AM
Unknown Object (File)
Wed, Sep 30, 4:39 AM
Unknown Object (File)
Thu, Sep 10, 2:24 PM
Unknown Object (File)
Wed, Sep 9, 9:42 PM
Unknown Object (File)
Fri, Sep 4, 6:40 PM
Unknown Object (File)
Fri, Sep 4, 3:00 PM
Unknown Object (File)
Thu, Sep 3, 12:59 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