Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2004 09:36:35 -0800 (PST)
From:      Nate Lawson <nate@root.org>
To:        Wes Peters <wes@softweyr.com>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/etc/rc.d ramdisk
Message-ID:  <20040317093502.X1820@root.org>
In-Reply-To: <20040316225131.010f9a31.wes@softweyr.com>
References:  <200403151836.i2FIaLCX044950@repoman.freebsd.org> <20040316225131.010f9a31.wes@softweyr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 16 Mar 2004, Wes Peters wrote:
> On Tue, 16 Mar 2004 17:45:58 -0800 Gordon Tetlow <gordon@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



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