From owner-freebsd-rc@FreeBSD.ORG Wed Feb 22 11:13:23 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55F0016A435 for ; Wed, 22 Feb 2006 11:13:23 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEA1043D45 for ; Wed, 22 Feb 2006 11:13:19 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id k1MBDFiw096780; Wed, 22 Feb 2006 14:13:15 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id k1MBDFlo096778; Wed, 22 Feb 2006 14:13:15 +0300 (MSK) (envelope-from yar) Date: Wed, 22 Feb 2006 14:13:14 +0300 From: Yar Tikhiy To: Dmitry Morozovsky Message-ID: <20060222111314.GB95106@comp.chem.msu.su> References: <20060222085814.U85700@woozle.rinet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060222085814.U85700@woozle.rinet.ru> User-Agent: Mutt/1.5.9i Cc: freebsd-rc@freebsd.org Subject: Re: /etc/rc.d/earlyroot (fwd) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2006 11:13:23 -0000 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