From 79ac5f1293c35e0ed8a7cf4813e4efd74e64ff03 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 8 Sep 2018 14:33:10 +0200 Subject: [PATCH] Propperly handle symlinks to directories in rootfs package Signed-off-by: David Oberhollenzer --- pkg/rootfs/build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/rootfs/build b/pkg/rootfs/build index f31e71a..a811034 100755 --- a/pkg/rootfs/build +++ b/pkg/rootfs/build @@ -9,7 +9,8 @@ copy_rootfs_files() { if [ ! -e "./$fname" ]; then dname=$(dirname $fname) - if [ -d "$pkgdir/$fname" ]; then + if [ -d "$pkgdir/$fname" ] && [ ! -L "$pkgdir/$fname" ] + then mkdir -p "./$fname" else [ "$dname" == "." ] || mkdir -p "./$dname";