From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 18 17:39:30 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F80116A41F for ; Tue, 18 Oct 2005 17:39:30 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA11A43D46 for ; Tue, 18 Oct 2005 17:39:29 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j9IHdTM2013576; Tue, 18 Oct 2005 10:39:29 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j9IHdSTB013575; Tue, 18 Oct 2005 10:39:28 -0700 Date: Tue, 18 Oct 2005 10:39:28 -0700 From: Brooks Davis To: Marco Molteni Message-ID: <20051018173928.GC9748@odin.ac.hmc.edu> References: <200510181031.43863.molter@tin.it> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OBd5C1Lgu00Gd/Tn" Content-Disposition: inline In-Reply-To: <200510181031.43863.molter@tin.it> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: hackers@freebsd.org Subject: Re: diskless: meaning of conf/base ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 17:39:30 -0000 --OBd5C1Lgu00Gd/Tn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 18, 2005 at 10:31:43AM +0200, Marco Molteni wrote: > Hi, >=20 > lately I have been playing with diskless booting with 6.x and 7.x. > I understand how the whole /conf overriding mechanism works, and > I think it is useful. >=20 > What I am missing is the usefulness of conf/base, especially=20 > conf/base/etc, that diskless(8) suggests to fill with the same > etc in $disklessroot/etc. >=20 > Let me say it in another way: >=20 > conf/default/etc/ contains the overrides > conf/base/etc/ contains the base etc that is overridden by the > files in default/etc >=20 > since anyway below $disklessroot we have an already existing etc: > $disklessroot/ect/, and since the normal way to initialize conf/base/etc > is: >=20 > cp -Rp $disklessroot/etc/ $disklessroot/conf/base/etc >=20 > So we get 3 copies of etc that need to be kept synchronized: >=20 > /etc > $disklessroot/etc > $disklessroot/conf/base/etc /etc and $disklessroot/etc do not necessarily have any relation. > why do we need $disklessroot/conf/base/etc at all? What should we use instead? You can't just use $disklessroot/etc because you have to remount it or copy it somewhere before mounting the mfs over /etc. Using some sort of loopback mount is a good option to avoid sync issues, but there are many ways to do it so the user needs to make that decision. > I know that there is the possibility to use=20 > conf/base/etc/diskless_remount to avoid filling conf/base/etc, but > anyway, my question remains. diskless_remount could be moved to, > say, /conf. Using diskless_remount to mount /conf would not addresses this. I use /conf/diskless_remount to allow me to share /conf directories between roots. I then use /conf/base/etc/diskless_remount to pick use the /etc of the root. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --OBd5C1Lgu00Gd/Tn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDVTNOXY6L6fI4GtQRAqAIAJoDHfWMpVxi9UWlROd6MI8e/iwsYgCfb3V7 aH0DN2ARDp8laph066Eb5Mk= =VK0H -----END PGP SIGNATURE----- --OBd5C1Lgu00Gd/Tn--