Page MenuHomeFreeBSD

Use tmpfs in rc.initdiskless
ClosedPublic

Authored by stevek on Jun 9 2017, 1:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 26 2023, 3:23 PM
Unknown Object (File)
Nov 25 2023, 4:44 AM
Unknown Object (File)
Nov 23 2023, 6:50 PM
Unknown Object (File)
Nov 22 2023, 10:29 PM
Unknown Object (File)
Nov 22 2023, 9:22 PM
Unknown Object (File)
Nov 13 2023, 10:17 PM
Unknown Object (File)
Nov 13 2023, 2:22 PM
Unknown Object (File)
Nov 13 2023, 1:56 AM

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