cvs commit: src/etc/rc.d ramdisk

Nate Lawson nate at root.org
Wed Mar 17 09:36:35 PST 2004


On Tue, 16 Mar 2004, Wes Peters wrote:
> On Tue, 16 Mar 2004 17:45:58 -0800 Gordon Tetlow <gordon at FreeBSD.org>
> alleged:
>
> > On Mon, Mar 15, 2004 at 10:36:21AM -0800, Wes Peters wrote:
> > > wes         2004/03/15 10:36:21 PST
> > >
> > >   FreeBSD src repository
> > >
> > >   Added files:
> > >     etc/rc.d             ramdisk
> > >   Log:
> > >   Add script for creating ramdisks at boot time, in time to be processed
> > >   by fstab.
> >
> > Can you add some documentation (and possibly default values) to rc.conf.5
> > and etc/defaults/rc.conf?
>
> Yeah, as soon as I get it right. ;^)
>
> By the way, I didn't shrug off your idea of an mount_md, I just decided it
> was the wrong way to go.  fstab doesn't store that kind of information for
> any other mount points, only for mfs, so it's probably not the right place
> to put it.
>
> mount_md would've been easier to do, just link mount_md to mdmfs and you'd
> get the behavior sought.  This script seemed like a more 'rc.d-ish' way to
> do it, modulo the little bug that you can't chown/chgrp before
> mountcritlocal because chown is in /usr/sbin.  Doh!

I have the same problem with my auto-recovery script for ccd.  It realizes
that only one disk is present, configures it, mounts it, and recreates a
scratch directory.  But the last one has to be delayed in the boot since
chown isn't available till later.  BTW, you don't need chgrp, just do
chown user:group file.

-Nate


More information about the cvs-src mailing list