From owner-freebsd-jail@freebsd.org Wed Dec 7 01:39:03 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 DCBD3C6A603 for ; Wed, 7 Dec 2016 01:39:03 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ACD13102E for ; Wed, 7 Dec 2016 01:39:03 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-pf0-x241.google.com with SMTP id 144so19529353pfv.0 for ; Tue, 06 Dec 2016 17:39:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=Wp+QE9FXz5T+mQzyW/UZmsL5098GgH3WVkbswdcx0u4=; b=GzuEHg9s5jj7XiFT4yfohccHw2Nl1pSWJ7KK3QGeGJ4e98sVyCp9u3nD/ZZTFlnSiJ ZmC5wTFn6lQKMB+GVg58Bk1oeitWar/JCR9tv3cyojep12KPxyTbL0nBra13QrnECkKk V4BhrhfgyYF+wBqQjQn3s5Z/lxuiIdmGHmEATiwgT1r+9zEQzwaXG8Ne7I2HWnzpc6o4 Mw5SFjMzBs/ABySO/t6M9I4X/a98Jea52qCGqVtpKjI5FCwcnVLu1FVyGwdCDO94w1Sy SPC59G6lp3HMko8JzJIxNvPMPOVz4kj0Bz2yD9XWjqU9cF517eej3jJCq61QZuoDzCvM r9+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=Wp+QE9FXz5T+mQzyW/UZmsL5098GgH3WVkbswdcx0u4=; b=SCIWi++ngt+2GO4h6mA2CSOZKEI7U24TEk+zPN43PzegIcLi2wGNyRZXSc6DtJSdj1 5DBCOZTQub531kNeY+kzJ4pJG0PLtu1BPTxsh++K8d9U2RxFW6vt8zK1BFwYO9hvYsRE SFCWCyJmwaTCzLP+1y2Iu/3R6/iidF+zeZAnbcExNFlelqkIljruDLLCJYHt+bSycPGE HPTbAycxDnbpgidgg1mOrSmG68smY+GGvBHg+KtAw/CkktMZpPLIBjia5T8DTthHuQeK YBhUmaQ06KZK2IWjuSIAPNx3cGNHU1yxxVzwSqSz9CGfX/2EkaOZAoePJm42/3kSKv6v lmkA== X-Gm-Message-State: AKaTC01vFmFX4ua3def6mucl1UxPyPxwwe4D/Q9rPrUssBTgOIPRlgmnAt+9r6v6h4qaqw== X-Received: by 10.84.146.140 with SMTP id g12mr143673229pla.157.1481074743337; Tue, 06 Dec 2016 17:39:03 -0800 (PST) Received: from [192.168.1.103] ([120.29.76.197]) by smtp.googlemail.com with ESMTPSA id 64sm37601179pfu.17.2016.12.06.17.39.01 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Dec 2016 17:39:02 -0800 (PST) Message-ID: <5847683B.8080703@gmail.com> Date: Wed, 07 Dec 2016 09:39:07 +0800 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz> CC: Kirk Coombs , freebsd-jail@freebsd.org Subject: Re: Failure to add new files when updating jails with ezjail-admin References: <90E6EB87-40FD-42EB-A45E-A5CBAF488BB9@coombscloud.com> <5847653F.2080502@quip.cz> In-Reply-To: <5847653F.2080502@quip.cz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 01:39:04 -0000 Miroslav Lachman wrote: > Kirk Coombs wrote on 2016/12/07 01:20: > >> >> 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 > > Files below are sources, these should not be in jails > >> /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 > > Jails are not using own kernel thus don;t need /boot/kernel directory > >> The output is the same now matter how many times I invoke >> "ezjail-admin update -u,” so the new files are clearly not being >> inserted into the basejail. >> >> Any suggestions? > > I don't like ezjail I am rolling jails by hand (few simple shell > scripts) so I can't talk about ezjail... but if freebsd-update failed > because /boot/kernel was not found inside jail, you can try to create > this directory (empty directory) and run update again. > > Miroslav Lachman qjail which is a fork of ezjail doesn't use the freebsd-update method to update its sharedfs directory tree which ezjail calls basejail. Give it a try. You may want to look at jail-primer port for background info on jails.