From nobody Wed Aug 17 08:17:31 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M71942cm8z4YlD8 for ; Wed, 17 Aug 2022 08:17:44 +0000 (UTC) (envelope-from gray@nxg.name) Received: from mx2.mythic-beasts.com (mx2.mythic-beasts.com [IPv6:2a00:1098:0:82:1000:0:2:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4M71932tY3z3nnb for ; Wed, 17 Aug 2022 08:17:43 +0000 (UTC) (envelope-from gray@nxg.name) Received: from [2001:8b0:df5:af53:2138:eb22:653c:ebbc] (port=57340 helo=[192.168.0.14]) by mailhub-hex-d.mythic-beasts.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oOEFB-006DRU-R2; Wed, 17 Aug 2022 09:17:42 +0100 From: Norman Gray To: doug@safeport.com Cc: freebsd-questions@FreeBSD.org Subject: Re: iocage template question. Date: Wed, 17 Aug 2022 09:17:31 +0100 X-Mailer: MailMate (1.14r5769) Message-ID: <37B45433-1B7B-4F04-B172-F9F80C46E5FF@nxg.name> In-Reply-To: <80fe8cc8-2813-6478-b556-2224633f0ba@safeport.com> References: <80fe8cc8-2813-6478-b556-2224633f0ba@safeport.com> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-BlackCat-Spam-Score: 0 X-Spam-Status: No, score=-0.1 X-Rspamd-Queue-Id: 4M71932tY3z3nnb X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of gray@nxg.name designates 2a00:1098:0:82:1000:0:2:1 as permitted sender) smtp.mailfrom=gray@nxg.name X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1098::82:1000:0:2:0/112]; RCVD_IN_DNSWL_MED(-0.20)[2a00:1098:0:82:1000:0:2:1:from]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:44684, ipnet:2a00:1098::/32, country:GB]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@FreeBSD.org]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[nxg.name]; TO_DN_NONE(0.00)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Doug, hello. On 17 Aug 2022, at 1:12, doug wrote: > I have several jails a few of which come from a template. Is there a > way of telling which jails are based on a given template? There may be a clever way within iocage itself, but if you do % zfs get -o name,value -r origin tank/iocage (where tank/iocage is the root dataset that iocage is using), then you'll see the 'origin' of each filesystem used by iocage There, you might see tank/iocage/jsils/JAIL1/root tank/iocage/templates/TEMPLATE1/root@JAIL1 tank/iocage/templates/TEMPLATE1/root tank/iocage/releases/13.1-RELEASE/root@TEMPLATE1 ...showing that JAIL1's /root is a clone of TEMPLATE1 at the snapshot @JAIL, and that that that template is a clone of the release at the snapshot @TEMPLATE1. So that, slightly indirectly, indicates the sequence of iocage jail creation. Best wishes, Norman -- Norman Gray : https://nxg.me.uk