TMPFS in kernels

Warner Losh imp at bsdimp.com
Tue Mar 4 14:49:03 UTC 2014


On Mar 4, 2014, at 3:30 AM, Jia-Shiun Li <jiashiun at gmail.com> wrote:

> On Mon, Mar 3, 2014 at 2:11 PM, John Hay <jhay at meraka.org.za> wrote:
>> Our embedded systems also use compact flash disks mounted ro. We have
>> been (ab)using the nice etc/rc.initdiskless and etc/rc.d/var scripts
>> by just having an etc/diskless and populated conf/base and conf/defaults
>> directories. But it seems those scripts just work with md devices.
> 
> I remember hacking it a while ago to adopt tmpfs instead on my pxeboot
> test environment. It only requires changing the line mdmfs mounting md to
> 'mount -t tmpfs' (plus mount options), and everything else will work as usual.

I’ll have to give it a spin on NanoBSD then, at least as an option…

Warner



More information about the freebsd-arm mailing list