From 52cfb26a3aa9f69c0d834ae995d51818cdcf0f4d Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Tue, 6 Jun 2023 11:55:31 +0200 Subject: [PATCH] Follow symlinks when copying files --- bin/mkvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mkvm.sh b/bin/mkvm.sh index a41ae1f..e94e495 100755 --- a/bin/mkvm.sh +++ b/bin/mkvm.sh @@ -84,7 +84,7 @@ for fileIndex in ${!COPY[@]}; do #DESTPATH="$ROOTFS""$DESTPATH" PARENTPATHDEST="$(dirname "$PATHDEST")" mkdir -p "$PARENTPATHDEST" - cp -r "$PATHSRC" "$PATHDEST" + cp --dereference -r "$PATHSRC" "$PATHDEST" done CMD="$1"