Use ln -sf otherwise nanobsd.sh -wkWK fails

since the etc link exists already.

Before creating the nanobsd image nanobsd.sh creates a soft link for
usr/local/etc in the function setup_nanobsd()

This fails if the link already exists (when using nanobsd.sh -wkWK)

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D49873
This commit is contained in:
Michael Reifenberger 2025-04-17 13:03:54 +02:00
parent a962800a09
commit 6ebab5e6bb

View file

@ -538,7 +538,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 -s ../../etc/local usr/local/etc
ln -sf ../../etc/local usr/local/etc
for d in var etc
do