From owner-freebsd-current@FreeBSD.ORG Thu Jun 5 08:24:15 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C836E37B405; Thu, 5 Jun 2003 08:24:15 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8130643FAF; Thu, 5 Jun 2003 08:22:38 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h55FMQEd081790 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 5 Jun 2003 18:22:26 +0300 (EEST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h55FMQ8L081785; Thu, 5 Jun 2003 18:22:26 +0300 (EEST) (envelope-from ru) Date: Thu, 5 Jun 2003 18:22:26 +0300 From: Ruslan Ermilov To: "Daniel C. Sobral" Message-ID: <20030605152226.GF61818@sunbay.com> References: <3EDE556A.2000302@freebsd.org> <20030605113940.GA76193@survey.codeburst.net> <3EDF3E8D.70001@freebsd.org> <20030605133731.GD61818@sunbay.com> <3EDF4C70.9080603@tcoip.com.br> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vKFfOv5t3oGVpiF+" Content-Disposition: inline In-Reply-To: <3EDF4C70.9080603@tcoip.com.br> User-Agent: Mutt/1.5.4i cc: "Daniel C. Sobral" cc: Scott Long cc: current@FreeBSD.org Subject: Re: New loader(8) plugin X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2003 15:24:16 -0000 --vKFfOv5t3oGVpiF+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 05, 2003 at 10:58:08AM -0300, Daniel C. Sobral wrote: > Ruslan Ermilov wrote: > >Is there any real reason why loader.rc is not updated by > >default? I'd be interested to know how many people out >=20 > It was my decision. >=20 > Before I wrote the stuff in *.4th that is used nowadays to read=20 > loader.conf, one had to write a loader.rc script to do any kind of=20 > special processing one wanted. Also, if anyone *does* want something=20 > more sophisticated, like my menu that allows me to chose different extra= =20 > *.conf files, which in turn allows me to do stuff like selecting between= =20 > 4.x and 5.x from inside loader instead of boot0, one has to change=20 > loader.rc. >=20 > We standard loader.rc does provide for flexibility in the following ways: >=20 > 1) User may change /boot/loader.conf and /boot/loader.conf.local, while= =20 > "we" may change /boot/defaults/loader.conf. >=20 > 2) User may change /boot/loader.rc as he deems fit, while "we" may=20 > change loader.4th and support.4th to add features. >=20 > Granted, the general overlay of loader.rc does restrict somewhat what=20 > features we can introduce. >=20 We could avoid this problem by having the standard loader.rc installed to /boot/defaults/loader.rc, and modifying loader(8) to parse /boot/loader.rc if it exists, and /boot/defaults/loader.rc otherwise. > To my mind, however, it is possible to introduce Scott's beastie menu by= =20 > making changes to loader.4th. In particular, we could change "start" in= =20 > loader.4th, and, if we *really* feel like it is needed, copy the old=20 > version to some other word (old-start, non-beastie-start, whatever :). >=20 > Also, if we do go that way, I'd like, for source style reasons, to have= =20 > Scott's script changed not to use evaluate. :-) >=20 I can't comment here, Forth is double Dutch for me. ;) --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --vKFfOv5t3oGVpiF+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+32AxUkv4P6juNwoRAn5/AJ9AG2BqMuKhaL0pAAQw5pLoBmn6JgCfWW2U tX044rXLALFGHwU05Gd6b08= =fzhr -----END PGP SIGNATURE----- --vKFfOv5t3oGVpiF+--