git: 6ebab5e6bbec - main - Use ln -sf otherwise nanobsd.sh -wkWK fails since the etc link exists already.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Apr 2025 14:59:42 UTC
The branch main has been updated by mr:
URL: https://cgit.FreeBSD.org/src/commit/?id=6ebab5e6bbecdc70fb85d81f046267423f5a67b8
commit 6ebab5e6bbecdc70fb85d81f046267423f5a67b8
Author: Michael Reifenberger <mr@FreeBSD.org>
AuthorDate: 2025-04-17 11:03:54 +0000
Commit: Michael Reifenberger <mr@FreeBSD.org>
CommitDate: 2025-04-17 14:59:15 +0000
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
---
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 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