Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2010 05:56:19 +1100
From:      David N <davidn04@gmail.com>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        embedded@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: Nanobsd Memory Backed Disks
Message-ID:  <4d7dd86f1001131056l2f42eca5t15d36ad376b9e5f8@mail.gmail.com>
In-Reply-To: <20100113.071904.971941791087055641.imp@bsdimp.com>
References:  <4d7dd86f1001130347k75ec7dcfhf6adf2a852210d89@mail.gmail.com> <20100113.071904.971941791087055641.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2010/1/14 M. Warner Losh <imp@bsdimp.com>:
> In message: <4d7dd86f1001130347k75ec7dcfhf6adf2a852210d89@mail.gmail.com>
> =A0 =A0 =A0 =A0 =A0 =A0David N <davidn04@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. =A0/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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d7dd86f1001131056l2f42eca5t15d36ad376b9e5f8>