git: 64e16fa5c7b1 - main - nanobsd: Prefer tgt_touch() instead of touch

From: Jose Luis Duran <jlduran_at_FreeBSD.org>
Date: Sat, 17 Jan 2026 18:13:02 UTC
The branch main has been updated by jlduran:

URL: https://cgit.FreeBSD.org/src/commit/?id=64e16fa5c7b13006864fc90d913a19135dbbd6b7

commit 64e16fa5c7b13006864fc90d913a19135dbbd6b7
Author:     Jose Luis Duran <jlduran@FreeBSD.org>
AuthorDate: 2026-01-17 18:06:19 +0000
Commit:     Jose Luis Duran <jlduran@FreeBSD.org>
CommitDate: 2026-01-17 18:06:19 +0000

    nanobsd: Prefer tgt_touch() instead of touch
    
    Prefer tgt_touch() as it adds an entry to the metalog file.
    
    Reviewed by:    imp, emaste
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D48785
---
 tools/tools/nanobsd/defaults.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/tools/nanobsd/defaults.sh b/tools/tools/nanobsd/defaults.sh
index 65339633e0af..50c6770dfcab 100755
--- a/tools/tools/nanobsd/defaults.sh
+++ b/tools/tools/nanobsd/defaults.sh
@@ -579,7 +579,7 @@ setup_nanobsd_etc() {
 	cd "${NANO_WORLDDIR}"
 
 	# create diskless marker file
-	touch etc/diskless
+	tgt_touch etc/diskless
 
 	[ -n "${NANO_NOPRIV_BUILD}" ] && chmod 666 boot/defaults/loader.conf
 	{