From c51888d511167129781a465e8a773214b88fc2ed 2017-11-04 11:37:40 From: GĂ©rard Vidal Date: 2017-11-04 11:37:40 Subject: [PATCH] Proposed amendments Syntax error on the use of wildcard * in the mv command option -u used twice in git command --- diff --git a/bootstrap.d/13-kernel.sh b/bootstrap.d/13-kernel.sh index f8c4256..f0b5d34 100644 --- a/bootstrap.d/13-kernel.sh +++ b/bootstrap.d/13-kernel.sh @@ -13,7 +13,7 @@ if [ "$BUILD_KERNEL" = true ] ; then # Copy existing kernel sources into chroot directory if [ -n "$KERNELSRC_DIR" ] && [ -d "$KERNELSRC_DIR" ] ; then # Copy kernel sources - cp -r "${KERNELSRC_DIR}/*" "${R}/usr/src/linux" + cp -r "${KERNELSRC_DIR}/"* "${R}/usr/src/linux" # Clean the kernel sources if [ "$KERNELSRC_CLEAN" = true ] && [ "$KERNELSRC_PREBUILT" = false ] ; then @@ -25,13 +25,13 @@ if [ "$BUILD_KERNEL" = true ] ; then # Fetch current RPi2/3 kernel sources if [ -z "${KERNEL_BRANCH}" ] ; then - as_nobody -u nobody git -C "${temp_dir}" clone --depth=1 "${KERNEL_URL}" linux + as_nobody git -C "${temp_dir}" clone --depth=1 "${KERNEL_URL}" linux else - as_nobody -u nobody git -C "${temp_dir}" clone --depth=1 --branch "${KERNEL_BRANCH}" "${KERNEL_URL}" linux - fi + as_nobody git -C "${temp_dir}" clone --depth=1 --branch "${KERNEL_BRANCH}" "${KERNEL_URL}" linux + fi # Copy downloaded kernel sources - mv "${temp_dir}/linux/*" "${R}/usr/src/linux/" + cp -r "${temp_dir}/linux/"* "${R}/usr/src/linux/" # Remove temporary directory for kernel sources rm -fr "${temp_dir}"