nanobsd: Prefer tgt_dir2symlink() to create symlinks

Prefer tgt_dir2symlink() to create symlinks, as it has the benefit of
appending the entry to the metalog file.

Reviewed by:	imp, emaste
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D48783
This commit is contained in:
Jose Luis Duran
2026-01-17 18:04:09 +00:00
parent 6eccd84bee
commit 5345567935
+1 -1
View File
@@ -549,7 +549,7 @@ setup_nanobsd() {
# are installed by this point, but are later in the process,
# the symlink not being here causes problems. It never hurts
# to have the symlink in error though.
ln -sf ../../etc/local usr/local/etc
tgt_dir2symlink usr/local/etc ../../etc/local 0755
for d in var etc
do