aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Reifenberger <mr@FreeBSD.org>2025-04-17 11:03:54 +0000
committerMichael Reifenberger <mr@FreeBSD.org>2025-04-17 14:59:15 +0000
commit6ebab5e6bbecdc70fb85d81f046267423f5a67b8 (patch)
tree710a66a2db63b64ad451ce203bc2f0bad1b70608
parenta962800a09a45b8f702ebd1a06b8f20bc84e97b1 (diff)
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
-rwxr-xr-xtools/tools/nanobsd/defaults.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/nanobsd/defaults.sh b/tools/tools/nanobsd/defaults.sh
index 4ba35ffeb04d..65bace957f71 100755
--- a/tools/tools/nanobsd/defaults.sh
+++ b/tools/tools/nanobsd/defaults.sh
@@ -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