From nobody Sat Jan 24 02:08:00 2026 X-Original-To: dev-commits-src-main@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 4dydVn0GD9z6Q8Hj for ; Sat, 24 Jan 2026 02:08:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dydVm6j35z3QkB for ; Sat, 24 Jan 2026 02:08:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769220480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8YyQ4zlhzI+lwhhXlVzumro50vILkZfq6Thfi2OjIQo=; b=KES+uRZzXQqhQ//LExfD/rykNbRKoVVaaoejZFmZhjd8Su6jKBllbgmNgC38bh7qFZ5g4d kifY80cxtAejq9fEELpfsWqdha9iAXk7tdA4X7e3JFOPvQywF40rz4zKNzCg7h95sgO253 fvOFDYn7ORtvqeqAILE3s6VoATyV5AVw/yVCkj67grBBFU+4hM76nL35skaORnaXiWaZQC K8V5R+9Xfg5ZeTCnH7qtmtdZ8/TmOoPWEqDWcf+o7/cYPQJ6RMKLuxV8uo2o59RDc1bhv/ fh65idwDya5wPqTnD1YXqeX0294SDWGhv4migMseHWWcfgr/dIVdHPnUfccGdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769220480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8YyQ4zlhzI+lwhhXlVzumro50vILkZfq6Thfi2OjIQo=; b=DthhN68Y0AASeNYgN88zAimsdFxNdYh3Ertq9BIpqpOHIjVfj2c+IEY2xgPHCtIw1o9TEn 0gqkIGR+oI1gp7zVdRkPhgYOUDuxmzxdzQvTPsmYTq5qUgN4YG5jhkKXk713CD8bxKmETr XVKWeNrE9d+DnudusFsWJsnRNG7FiaESbbHxZrsix1ehsJ/8czoT93Gw51DiTkhB17k5Ss V9QB3lFOEYHeHJvBUE44p69Ih960lXNz+rAaAG3NWAHDHWH/HFDTIGZyROa7WyYalrtagw /SAIlsqd4M1ho1RQeYGsSeg6SjrFbhVYsCgClxpmj/uzgJYKsQlTPq4AiWI3ig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1769220480; a=rsa-sha256; cv=none; b=C5+kwx8nT/nH8ivMw13KtHl8xsavfNcHvQFeM/ZOUFedr0zP0lYPLS73KIDkOcALLqpsAB Jj0uNp+wSe8TTcjBIqg6S3VX9yfzLxnei8KBnCLl4FiwmIciTPwJkSxfU2ij89C6nqlRB+ l9W430F7drvvIwwWbbJuePuuFOJh7cZyN/uenT14Z2qUFoBu5hWaAfB44zYpHcWQJb8Nr9 id4UH+WnYB7MzeoQqbQ6GdD+BNFyIPhe6i0hH1ZwSlaFRQGSwXkvTq6RxjStuDJb3yh6FL Ixvuy3kuK1XfhZOJ3lzN4t98oXV6qpdJIhrHDcs+1RUAwUdCDSEm5BMdc/CtPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dydVm6CKnzltX for ; Sat, 24 Jan 2026 02:08:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2460a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 24 Jan 2026 02:08:00 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jose Luis Duran Subject: git: cd730bef74f9 - main - nanobsd: Use mtree -C to produce the metalog List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cd730bef74f9ecc2500fd5c01094dd5bfd34c246 Auto-Submitted: auto-generated Date: Sat, 24 Jan 2026 02:08:00 +0000 Message-Id: <69742980.2460a.271ca31c@gitrepo.freebsd.org> The branch main has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=cd730bef74f9ecc2500fd5c01094dd5bfd34c246 commit cd730bef74f9ecc2500fd5c01094dd5bfd34c246 Author: Jose Luis Duran AuthorDate: 2026-01-24 02:06:57 +0000 Commit: Jose Luis Duran CommitDate: 2026-01-24 02:06:57 +0000 nanobsd: Use mtree -C to produce the metalog Prefer an mtree -C output, which is guaranteed to be mtree-compatible. Add "gname", "uname", and "tags" to the default keyword set, while removing "size" and "time", the latter being set on kernel file entries and taking precedence over makefs -T (when paired with -F). As a side effect, this produces a cleaner file with sorted keywords. Note that passing "-u" to sort in order to pipe to mtree is no longer necessary, but we'll do it out of habit. Reviewed by: imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54854 --- tools/tools/nanobsd/defaults.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/tools/nanobsd/defaults.sh b/tools/tools/nanobsd/defaults.sh index a0a186cee42f..31f3df9a3086 100755 --- a/tools/tools/nanobsd/defaults.sh +++ b/tools/tools/nanobsd/defaults.sh @@ -554,8 +554,8 @@ run_late_customize() { # fixup_before_diskimage() { # Run the deduplication script that takes the metalog journal and - # combines multiple entries for the same file (see source for - # details). We take the extra step of removing the size keywords. This + # combines multiple entries for the same file (see source for details). + # We take the extra step of removing the size and time keywords. This # script, and many of the user scripts, copies, appends and otherwise # modifies files in the build, changing their sizes. These actions are # impossible to trap, so go ahead remove the size= keyword. For this @@ -566,7 +566,7 @@ fixup_before_diskimage() { cp ${NANO_METALOG} ${NANO_METALOG}.pre echo "/set uname=${NANO_DEF_UNAME} gname=${NANO_DEF_GNAME}" > ${NANO_METALOG} cat ${NANO_METALOG}.pre | ${NANO_TOOLS}/mtree-dedup.awk | \ - sed -e 's/ size=[0-9][0-9]*//' | sort >> ${NANO_METALOG} + sort -u | mtree -C -K uname,gname,tags -R size,time >> ${NANO_METALOG} fi }