From fd8e8f0af191f2cc21839fcdcedaf78c57fca001 Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Tue, 6 Jul 2021 08:22:16 +0900 Subject: [PATCH] Fix the mistake of the copy pattern Now, even directiries are copied --- script/lib/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/lib/common.sh b/script/lib/common.sh index 00ca95e..11c3fbd 100644 --- a/script/lib/common.sh +++ b/script/lib/common.sh @@ -301,7 +301,7 @@ function post_install() { # Copy all scripts to the target /tmp echo "...Copy files in current dir to ${TARGETMOUNTPOINT}/tmp." mkdir "${TARGETMOUNTPOINT}/tmp/kaiten-yaki" - cp -R ./*.sh "${TARGETMOUNTPOINT}/tmp/kaiten-yaki" + cp -r ./* -t "${TARGETMOUNTPOINT}/tmp/kaiten-yaki" # Change root and create the keyfile and ramfs image for Linux kernel. # The here document is script executed under chroot. And here we call