From owner-freebsd-arch@freebsd.org Mon Nov 30 04:28:47 2015 Return-Path: Delivered-To: freebsd-arch@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 55502A3C278 for ; Mon, 30 Nov 2015 04:28:47 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (kientzle.com [142.254.26.11]) (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 2C94A14A4; Mon, 30 Nov 2015 04:28:46 +0000 (UTC) (envelope-from tim@kientzle.com) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id tAU4TklX080901; Mon, 30 Nov 2015 04:29:46 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.108] (192.168.1.101 [192.168.1.101]) by kientzle.com with SMTP id kwd69xp26pctbddtif9wb6tnte; Mon, 30 Nov 2015 04:29:46 +0000 (UTC) (envelope-from tim@kientzle.com) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: mtree "language" enhancements From: Tim Kientzle In-Reply-To: Date: Sun, 29 Nov 2015 20:28:42 -0800 Cc: Michal Ratajsky , Brooks Davis , "freebsd-arch@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <0A51B6D4-9EDD-4EFF-876F-C6B515DBB4F3@kientzle.com> References: To: Warner Losh , "Simon J. Gerraty" X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2015 04:28:47 -0000 > On Nov 29, 2015, at 2:49 PM, Tim Kientzle wrote: >=20 > Simon also asked: >> Indeed I'd really like the ability to provide default uid/gid >> for the case that a uname/gname cannot be looked up. >=20 > I think 'tar' got this right: If uname and uid are both specified, = then look up uname and if that fails, use the specified uid. Ditto for = gname/gid. In particular, this lets a single specification be used to = rebuild a tree on another system with different UIDs or on a system that = does not (yet) have a full password file. An option could be provided = for the (rare) case that someone really wants to prefer UIDs to unames. On further reflection, preferring UIDs to unames would actually be = pretty common here. In particular, NanoBSD (and Crochet and other similar tools) should = prefer the UID when building images instead of looking up unames against = the build host's password file. Tim