Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2004 07:59:41 +0100
From:      =?ISO-8859-1?Q?S=F8ren_Schmidt?= <sos@DeepCore.dk>
To:        Wes Peters <wes@softweyr.com>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/etc/rc.d ramdisk
Message-ID:  <4057F75D.7060705@DeepCore.dk>
In-Reply-To: <20040316225131.010f9a31.wes@softweyr.com>
References:  <200403151836.i2FIaLCX044950@repoman.freebsd.org> <20040317014557.GH660@spiff.melthusia.org> <20040316225131.010f9a31.wes@softweyr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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!

Urhm, am I missing something or why dont you just put the md in fstab 
directly:

# Device        Mountpoint      FStype  Options         Dump    Pass#
md              /tmp            mfs     rw,-Ms64m       0       0

This have made my /tmp a ramdisk for a long time without any fuss...

-Søren



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