From owner-freebsd-current@FreeBSD.ORG Mon Oct 20 11:20:20 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 6AE6416A4B3 for ; Mon, 20 Oct 2003 11:20:20 -0700 (PDT) Received: from kientzle.com (h-66-166-149-50.SNVACAID.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF06843FCB for ; Mon, 20 Oct 2003 11:20:17 -0700 (PDT) (envelope-from kientzle@acm.org) Received: from acm.org ([66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id h9KIKGkX092309; Mon, 20 Oct 2003 11:20:17 -0700 (PDT) (envelope-from kientzle@acm.org) Message-ID: <3F942760.8090706@acm.org> Date: Mon, 20 Oct 2003 11:20:16 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "C. Kukulies" References: <200310200955.h9K9tvEt006047@www.kukulies.org> In-Reply-To: <200310200955.h9K9tvEt006047@www.kukulies.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: this /rescue thing X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kientzle@acm.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2003 18:20:20 -0000 C. Kukulies wrote: > /rescue is always causing trouble with me here. make world falls over > with: > > ===> rescue/rescue > install -s -o root -g wheel -m 555 rescue /rescue > install -o root -g wheel -m 555 nextboot_FIXED /rescue/nextboot.sh > install: /rescue/nextboot.sh: Not a directory > *** Error code 71 > > Stop in /u/src/rescue/rescue. > *** Error code 1 > > Looking into / I see that /rescue is a file. > > Why is this /rescue being created in /? It used to blow up and > overflow the / filesystem (there were times when a 40 MB root FS was > sufficient). > > What is the safe method to put /rescue elsewhere (in an area with enough > space). It also seems that it is being deleted by make world, at least I > seem to remember that putting a soft link into /rescue into / didn't > help either. Symlinking /rescue -> / will cause exactly the problem you're seeing. (Because there is a file called /rescue/rescue, which will then get installed on top of the symlink. Boom!) Don't do that. You could probably symlink /rescue -> /usr/rescue, but that sort of defeats the purpose. /rescue is part of a plan to reduce the size of the / partition, though it's a somewhat involved process. There are two key pieces: 1) Building /bin and /sbin dynamically. This is a big space savings, but comes at a cost. Namely, it's a lot easier to trash a dynamic /bin than the old static one. 2) /rescue contains a compact set of statically-linked executables (about 3MB total) that are provided to help in system recovery if /bin or /sbin gets damaged. The catch, of course, is that step #2 needs to be finished first, temporarily increasing the / partition size until #1 is done. You have several options: * Disable /rescue. Define NO_RESCUE to suppress it from being built and installed, e.g., make -DNO_RESCUE buildworld make -DNO_RESCUE installworld Or add it to /etc/make.conf * Take the plunge and compile /bin dynamically. Define WITH_DYNAMICROOT in /etc/make.conf. * Get a bigger hard disk. ;-) Hope this helps, Tim Kientzle