Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Oct 1998 12:08:36 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Luigi Rizzo <luigi@labinfo.iet.unipi.it>
Cc:        mike@smith.net.au (Mike Smith), stable@FreeBSD.ORG
Subject:   Re: Request for change... 
Message-ID:  <199810241908.MAA05550@dingo.cdrom.com>
In-Reply-To: Your message of "Fri, 23 Oct 1998 04:10:49 BST." <199810230310.EAA13927@labinfo.iet.unipi.it> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > I don't think it's suitable for general consumption, no - there is too
> > much of your local policy embedded in this.
> > 
> > I'd keep it local, or perhaps see if you can't come up with a generic 
> > hook mechanism that's called out very early, and do everything inside 
> > that (optional) hook.
> 
> of course, i did not mean to commit things in the current form:
> 
> > > Do i have permission to work on this stuff for inclusion in -stable
> > > and/or -current ?
> 
> but just elaborate it and come up with something much simpler and
> generic along these lines:
> 
>   very near the beginning of /etc/rc, figure out if this is a
>   diskless machine and set a variable.
> 
>   make fsck/mount/swapon contitional on this variable, and call
>   some alternate procedure from say rc.diskless for these actions.

That's getting closer.  I still can't help but think that this is the 
wrong way to do it; the process should be driven by the configuration 
data, not by policy embedded in code.

Why should the fsck/mount/swapon be conditionalised in more than one
location?  You can already turn all of these off in /etc/fstab.




-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



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