From owner-freebsd-doc@freebsd.org Sat Oct 17 04:26:55 2015 Return-Path: Delivered-To: freebsd-doc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A6506A16E55 for ; Sat, 17 Oct 2015 04:26:55 +0000 (UTC) (envelope-from kaduk@mit.edu) Received: from dmz-mailsec-scanner-1.mit.edu (dmz-mailsec-scanner-1.mit.edu [18.9.25.12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 34A1B138F for ; Sat, 17 Oct 2015 04:26:54 +0000 (UTC) (envelope-from kaduk@mit.edu) X-AuditID: 1209190c-f79b76d000007c4e-03-5621ce06b7ab Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP id BE.08.31822.60EC1265; Sat, 17 Oct 2015 00:26:46 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id t9H4QkSp009911; Sat, 17 Oct 2015 00:26:46 -0400 Received: from multics.mit.edu (system-low-sipb.mit.edu [18.187.2.37]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id t9H4QhHB001887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 17 Oct 2015 00:26:45 -0400 Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id t9H4Qg8k017487; Sat, 17 Oct 2015 00:26:42 -0400 (EDT) Date: Sat, 17 Oct 2015 00:26:42 -0400 (EDT) From: Benjamin Kaduk X-X-Sender: kaduk@multics.mit.edu To: User Phryk cc: freebsd-doc@FreeBSD.org Subject: Re: freebsd-update for jails built after "Updating Multiple Jails" In-Reply-To: <20151016194226.GA4760@miasma.phryk> Message-ID: References: <20151016194226.GA4760@miasma.phryk> User-Agent: Alpine 1.10 (GSO 962 2008-03-14) MIME-Version: 1.0 Content-ID: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCKsWRmVeSWpSXmKPExsUixCmqrMt2TjHM4H6XjcWpM12sFj/2zmZy YPK4ei3KY8an+SwBTFFcNimpOZllqUX6dglcGT1n6gq6xCr+H9jF1MDYK9TFyMkhIWAiMePc V1YIW0ziwr31bF2MXBxCAouZJLbdA0mAOBsZJc73nIZyDjFJzLm3kB3CaWCUeLHxNjtIP4uA tsSfvmnMIDabgJrE+hXXmCHmKkpsPjUJzBYRUJf4O3MlI4jNLCAt8WLzIzYQW1jAW2Lm6SNg cU4BQ4l1O/vBbF4BR4nfby+AzRcSMJC4crQB7FZRAR2J1funsEDUCEqcnPmEBWJmoMSJP/vY IGxHiYNNG1kmMArPQlI2C0nZLCRlELa6xIFPFxkhbG2J+zfb4Gqen/7OuICRbRWjbEpulW5u YmZOcWqybnFyYl5eapGuoV5uZoleakrpJkZw5Ejy7GB8c1DpEKMAB6MSD69Cm2KYEGtiWXFl 7iFGSQ4mJVHe57uAQnxJ+SmVGYnFGfFFpTmpxYcYJTiYlUR4D0cB5XhTEiurUovyYVLSHCxK 4rybfvCFCAmkJ5akZqemFqQWwWRlODiUJHjvngFqFCxKTU+tSMvMKUFIM3FwggznARr+EaSG t7ggMbc4Mx0if4pRUUqc9yZIQgAkkVGaB9cLTmy7mVRfMYoDvSLMy30WqIoHmBThul8BDWYC GrznvyzI4JJEhJRUA6PJBXO1nvusYQuZHl3mv7TU6O/8kt+VTbOtd9eebG4PyW7Mun7f4+Eu e9k/6TrJXSIKXfumhXzcKLYh9YfMx43TnS+djorwSXCu2/9zVtPMUr2514yvLvSbcjp/4Z0t f+bO/nc+RaRIg/+ezBkn8bO1hqZ//c64xi1NedW69ZB5bMXqr7OSSuSUWIozEg21mIuKEwGJ qfFARwMAAA== Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Oct 2015 04:26:55 -0000 On Fri, 16 Oct 2015, User Phryk wrote: > PS: I found this mail address below the documentation, not sure if its > an ML i need to join - if so please don't hesitate to tell me to join > so this question can be answered publicly. I think https://lists.freebsd.org/mailman/listinfo/freebsd-questions is a somewhat better place to ask this quesion; the freebsd-doc list is for making updates to the documentation. But, I think I have an answer for you here anyway. > > I set up my jails like described in [1]. > > My setup differs a tiny bit in directory naming, and the fact > that I've foregone creating skel/etc/make.conf because I'm > using a central poudriere installation for all my port-building > needs. I am assuming this doesn't change anything for updating > the basesystem, but please do correct me if I'm wrong. > > I can update the packages just fine using "pkg upgrade -j", > but I'm kind of at a loss on what the equivalent of doing the > "freebsd-update fetch/install" and "freebsd-update upgrade -r" > procedures is for these kinds of jails. > > I've already searched through the docs and asked in freenode/#freebsd a > number of times, but sadly nobody seemed to be able to answer my question= =E2=80=A6 > > I'm strongly suspecting that "freebsd-update" is not the way to go and > that I have to have my machine compile the basesystem itself. Indeed, freebsd-update works based on binary diffs, so you need to have started from an official release install medium in order to use it. (Well, or go through a lot of effort to set up your own freebsd-update build environment, which seems overkill here.) > Is this the case? And if so, do I just need to follow[2] and then > do "make installworld DESTDIR=3D/my/jailroot"? Basically, yes. DESTDIR need not be set for buildworld, and does need to be set for installworld. I normally end up re-running 'make distribution DESTDIR=3D/my/jailroot' instead of dealing with mergemaster, since my jails to not really get customizations to things in /etc, but mergemaster should work as well. You'll need to pass the -D argument to mergemaster, and possibly -m as well if the source tree in question is not in /usr/src/. Be sure to set DESTDIR for delete-old and delete-old-libs! -Ben > [1] https://www.freebsd.org/doc/handbook/jails-application.html > [2] https://www.freebsd.org/doc/handbook/makeworld.html