From owner-freebsd-current@FreeBSD.ORG Thu Nov 11 20:08:36 2004 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 730C616A4CE for ; Thu, 11 Nov 2004 20:08:36 +0000 (GMT) Received: from smtp1.jazztel.es (smtp1.jazztel.es [62.14.3.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id F284743D4C for ; Thu, 11 Nov 2004 20:08:35 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from antivirus by smtp1.jazztel.es with antivirus id 1CSLFP-0006yE-00 Thu, 11 Nov 2004 21:08:47 +0100 Received: from [212.106.238.191] (helo=rguez.homeunix.net) by smtp1.jazztel.es with esmtp id 1CSLFO-0006uG-00 Thu, 11 Nov 2004 21:08:47 +0100 Received: from redesjm.local (orion.redesjm.local [192.168.254.16]) by rguez.homeunix.net (8.13.1/8.13.1) with ESMTP id iABK8M86001615; Thu, 11 Nov 2004 21:08:22 +0100 (CET) (envelope-from freebsd@redesjm.local) Received: from localhost (localhost [[UNIX: localhost]]) by redesjm.local (8.13.1/8.13.1/Submit) id iABK8MRj058550; Thu, 11 Nov 2004 21:08:22 +0100 (CET) (envelope-from freebsd@redesjm.local) From: Jose M Rodriguez To: "Ryan Sommers" Date: Thu, 11 Nov 2004 21:08:21 +0100 User-Agent: KMail/1.7.1 References: <200411112018.46685.freebsd@redesjm.local> <49278.208.4.77.66.1100201966.squirrel@208.4.77.66> In-Reply-To: <49278.208.4.77.66.1100201966.squirrel@208.4.77.66> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200411112108.21729.freebsd@redesjm.local> X-AntiVirus: checked by AntiVir Milter (version: 1.1; AVE: 6.28.0.12; VDF: 6.28.0.59; host: antares.redesjm.local) X-Virus-Scanned: by antivirus cc: Jose M Rodriguez cc: current@freebsd.org Subject: Re: initdiskless patch 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, 11 Nov 2004 20:08:36 -0000 El Jueves, 11 de Noviembre de 2004 20:39, Ryan Sommers escribi=F3: > Generally I like this. I've been wanting to get rid of that > dependency on /stand for awhile as you know. This patch would need > either my patch to move gzip into /bin or something similar. > > Another patch I have locally is to replace GNU gzip with the BSD > licensed copy. Moving this to the root is somewhat more of a > challenge though because it requires the addition of a few libraries > for the binary. > > Just a few comments within. > > Jose M Rodriguez said: > > Hi, > > This is an absolute _NOT_ tested patch, but an idea that can be > > even MFC to RELENG_4 > > Needs to be tested before MFC... > !! sure > > comments welcome, > > -- > > josemi > > > > +# a valid gzip > > +if [ -x /bin/gzip ]; then > > + use_gunzip=3D"/bin/gzip -d" > > +elif [ -x /rescue/gzip ]; then > > + use_gunzip=3D"/rescue/gzip -d" > > +elif [ -x /stand/gzip ]; then > > + use_gunzip=3D"/stand/gzip -d" > > +else > > + use_gunzip=3D"" > > I'm not sure I like the idea of having /rescue/gzip or /stand/gzip > referenced. /stand/gzip is something that, in my opinion, is 'ok' for > now, but after a gzip binary is moved to the root needs to go away. > /rescue/gzip is definately NOT something that should go in here. Why > would a diskless system need a /rescue anyway? Rescue is for > repairing a borked root filesystem. This is completely unnecessary on > diskless. > This is not the goal. this is about use any gzip present on the system,=20 so you can survive any config: =2D use /rescue/gzip without /bin/gzip and without /stand (HEAD/RELENG_5) =2D use /stand/gzip without /bin/gzip and without /rescue (RELENG_4) =2D use /bin/gzip as default when this may be avaiable. > With that in mind I'd like to see the next generation of the > diskless-root-building script not include /rescue in the diskless > root. Well, I'm not using this rigth now. I'm sharing the rootfs as filled by=20 sysinstall. Also, you may want use a mfs based rootfs (via tftpboot). Also, I think that we can't truss actual initdiskless docs/scripts. We=20 need brand new ones. =2D-=20 josemi=20