Nanobsd Memory Backed Disks

David N davidn04 at gmail.com
Wed Jan 13 18:56:36 UTC 2010


2010/1/14 M. Warner Losh <imp at bsdimp.com>:
> In message: <4d7dd86f1001130347k75ec7dcfhf6adf2a852210d89 at mail.gmail.com>
>            David N <davidn04 at gmail.com> writes:
> : I've been poking around /etc/rc.diskless and other rc's. I can't seem
> : to find what script loads the md.
> : Its not in /etc/fstab
> :
> : Does anyone know where it is?
> : Also how does nanobsd load the /etc into the md? newfs + cpio?
>
> The md driver is usually compiled into the kernel. /etc/rc.d/mdconfig
> and /etc/rc.d/mdconfig2 configure the ram disks.  /etc/diskless is
> created as part of the build process, and /etc/rc.initdiskless does
> all the copying magic.
>
> Warner
>

Thanks, I found what I was looking for.

/conf/base/etc
/conf/base/var

the diskless file to enable md
and md_size which determines the md size.

It loads the files from there instead of the actual /etc (before the
/dev/md mount)

Regards
David N


More information about the freebsd-embedded mailing list