From owner-freebsd-jail@freebsd.org Wed Dec 7 00:28:52 2016 Return-Path: Delivered-To: freebsd-jail@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 756A9C6BCA0 for ; Wed, 7 Dec 2016 00:28:52 +0000 (UTC) (envelope-from freebsd@coombscloud.com) Received: from mini.coombscloud.com (mini.coombscloud.com [67.42.252.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mini.coombscloud.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5579479E for ; Wed, 7 Dec 2016 00:28:51 +0000 (UTC) (envelope-from freebsd@coombscloud.com) Received: from localhost (localhost [127.0.0.1]) by mini.coombscloud.com (Postfix) with ESMTP id D20001D6A22F; Tue, 6 Dec 2016 17:20:26 -0700 (MST) X-Virus-Scanned: amavisd-new at mydomain = coombscloud.com Received: from mini.coombscloud.com ([127.0.0.1]) by localhost (mini.coombscloud.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FgwRtvjes6Nq; Tue, 6 Dec 2016 17:20:22 -0700 (MST) Received: from [192.168.11.214] (209-180-88-130.dia.static.qwest.net [209.180.88.130]) by mini.coombscloud.com (Postfix) with ESMTPSA id 2FFEA1D6A1FF; Tue, 6 Dec 2016 17:20:22 -0700 (MST) From: Kirk Coombs Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Failure to add new files when updating jails with ezjail-admin Message-Id: <90E6EB87-40FD-42EB-A45E-A5CBAF488BB9@coombscloud.com> Date: Tue, 6 Dec 2016 17:20:21 -0700 To: freebsd-jail@freebsd.org X-Mailer: Apple Mail (2.3251) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2016 00:28:52 -0000 It looks like a similar question may have been asked on this list some = time ago = (https://lists.freebsd.org/pipermail/freebsd-jail/2014-June/002577.html = ),= but there were no replies. I am new to jails, so perhaps I am just = doing something wrong. I am running FreeBSD 10.3, with several jails built using ezjail-admin = using the instructions at = https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-ezjail.ht= ml = . I also enabled ZFS in ezjail.conf. The basejail was created from = binaries using =E2=80=9Cezjail-admin install,=E2=80=9D and contains the = sources (-s), man pages (-m), and a ports tree (-P). I for a couple of patch releases, I have updated the basejail with = binary updates using freebsd-update by executing =E2=80=9Cezjail-admin = update -u.=E2=80=9D Each time, I have observed that it seems to update = the existing files fine, but does not add the new files that are part of = the update. For example, the update for 10.3-RELEASE-p13 updated many = files, removed some files, and added several files. However, = "ezjail-admin update -u=E2=80=9D does not appear to be able to add the = new files into the basejail. For example, invocation "ezjail-admin = update -u=E2=80=9D to update to 10.3-RELEASE-p13 ended in some errors = for adding the new files (sorry, I didn=E2=80=99t capture the output of = that invocation). However, these errors are repeated with subsequent = invocations of "ezjail-admin update -u,=E2=80=9D which is reproduced = below: $ sudo ezjail-admin update -u Password: Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 10.3-RELEASE from update6.freebsd.org... = done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. No updates needed to update system to 10.3-RELEASE-p13. No updates are available to install. Run '/usr/sbin/freebsd-update fetch' first. Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 10.3-RELEASE from update5.freebsd.org... = done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. The following files will be added as part of updating to = 10.3-RELEASE-p13: /usr/share/zoneinfo/Asia/Barnaul /usr/share/zoneinfo/Asia/Famagusta /usr/share/zoneinfo/Asia/Tomsk /usr/share/zoneinfo/Asia/Yangon /usr/share/zoneinfo/Europe/Astrakhan /usr/share/zoneinfo/Europe/Kirov /usr/share/zoneinfo/Europe/Ulyanovsk /usr/src/contrib/libarchive/libarchive/test/test_write_disk_secure744.c /usr/src/contrib/libarchive/libarchive/test/test_write_disk_secure745.c /usr/src/contrib/libarchive/libarchive/test/test_write_disk_secure746.c /usr/src/contrib/ntp/README.pullrequests /usr/src/contrib/ntp/lib/isc/tsmemcmp.c /usr/src/contrib/ntp/scripts/build/genAuthors.in /usr/src/contrib/ntp/sntp/m4/sntp_problemtests.m4 /usr/src/contrib/ntp/tests/libntp/run-tsafememcmp.c /usr/src/contrib/ntp/tests/libntp/tsafememcmp.c /usr/src/contrib/tzdata/CONTRIBUTING /usr/src/contrib/tzdata/LICENSE /usr/src/contrib/tzdata/Makefile /usr/src/contrib/tzdata/NEWS /usr/src/contrib/tzdata/README /usr/src/contrib/tzdata/Theory /usr/src/contrib/tzdata/backzone /usr/src/contrib/tzdata/checklinks.awk /usr/src/contrib/tzdata/checktab.awk /usr/src/contrib/tzdata/leapseconds.awk /usr/src/contrib/tzdata/version /usr/src/contrib/tzdata/zoneinfo2tdf.pl The following files will be updated as part of updating to = 10.3-RELEASE-p13: /var/db/mergemaster.mtree Installing updates...mkdir: /usr/jails/newjail//boot: No such file or = directory mtree: /usr/jails/newjail//boot/kernel: No such file or directory mtree: /usr/jails/newjail//boot/kernel.old: No such file or directory touch: /usr/jails/newjail//boot/kernel.old/.freebsd-update: No such file = or directory Could not create kernel backup directory $ The output is the same now matter how many times I invoke "ezjail-admin = update -u,=E2=80=9D so the new files are clearly not being inserted into = the basejail. Any suggestions? =E2=80=94Kirk Coombs=