From owner-freebsd-doc@FreeBSD.ORG Fri May 3 20:16:55 2013 Return-Path: Delivered-To: freebsd-doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5B5DC49E for ; Fri, 3 May 2013 20:16:55 +0000 (UTC) (envelope-from freebsd-lists@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 289C311B1 for ; Fri, 3 May 2013 20:16:54 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id CF20633C2A; Fri, 3 May 2013 16:16:42 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 0BE4C39879; Fri, 3 May 2013 16:16:38 -0400 (EDT) From: Lowell Gilbert To: Brandon Thomson Subject: Re: docs/178221: Addition to handbook jails chapter: warning about make deinstall References: <201305020450.r424o1gh015693@freefall.freebsd.org> Date: Fri, 03 May 2013 16:16:37 -0400 In-Reply-To: <201305020450.r424o1gh015693@freefall.freebsd.org> (Brandon Thomson's message of "Thu, 2 May 2013 04:50:01 GMT") Message-ID: <44zjwbstsq.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-doc@FreeBSD.org X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 May 2013 20:16:55 -0000 Brandon Thomson writes: > The following reply was made to PR docs/178221; it has been noted by GNATS. > > From: Brandon Thomson > To: freebsd-gnats-submit@FreeBSD.org > Cc: > Subject: Re: docs/178221: Addition to handbook jails chapter: warning about > make deinstall > Date: Thu, 2 May 2013 04:48:04 +0000 > However, the point of this issue is that PREFIX also needs to be set when > running "make deinstall" *inside* the jail environment. If you don't set PREFIX, > you will run into the error described in [2]. I apologize; not having used that Handbook chapter's method for setting up jails, I misunderstood parts of it. At least. > Note that the host's /usr/jails/s/myjail should be mounted to /s inside the > jail, so the PREFIX inside the jail is: /s/usr-local. Okay, I've got it. I'm still unsure about the Handbook change; more on that later. > Hope that makes sense! Jail paths can be really confusing :( In setting up a jail, you get a lot (nearly complete) freedom in setting up the paths any way you want. For mounting many of the filesystem read-only and sharing the underlying copies between multiple jails, you necessarily end up with aliases for a number of paths. > I suppose it's also possible that both myself and the original poster in [2] > have failed to follow the instructions in [1] correctly in some way that is > causing this issue to arise, but that seems unlikely to me. I may still be wrong, but if so I'm about to be wrong in a new way. It seems to me that the Handbook advice includes linking the /s/usr-local onto /usr/local inside the jail. This is highly desirable for regular users because having /usr/local/bin in a PATH works just like on a real system. If you have that working, then I don't *think* you should need to set PREFIX either. My apologies again for shooting from the hip.