Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Feb 2006 14:13:14 +0300
From:      Yar Tikhiy <yar@comp.chem.msu.su>
To:        Dmitry Morozovsky <marck@rinet.ru>
Cc:        freebsd-rc@freebsd.org
Subject:   Re: /etc/rc.d/earlyroot (fwd)
Message-ID:  <20060222111314.GB95106@comp.chem.msu.su>
In-Reply-To: <20060222085814.U85700@woozle.rinet.ru>
References:  <20060222085814.U85700@woozle.rinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 22, 2006 at 09:03:25AM +0300, Dmitry Morozovsky wrote:
> Dear colleagues,
> 
> what about creating the following rc.d script? 
> 
> There are situations where you should modify something on a root partition, and 
> console is not available; early.sh is not suitable because when it executes 
> root is mounted r/o, and duplicating /etc/rc.d/root functionality in 
> /etc/rc.early or invoking it from there does not seem elegant nor appropriate 
> to me.
> 
> You thoughts?
> 
> Sincerely,
> D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
> ------------------------------------------------------------------------
> *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
> ------------------------------------------------------------------------
> -- 8< --
> #!/bin/sh
> #
> # $FreeBSD$
> #
> 
> # REQUIRE: root
> # BEFORE: mountcritlocal
> # KEYWORD: nojail
> 
> if [ -r /etc/rc.earlyroot ]; then
>         sh /etc/rc.earlyroot
> fi
> -- 8< --

Shouldn't every rc.d script contain a PROVIDE line?

-- 
Yar



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