From 5815951516730970d9d30c15b168ffba6004cbfb Mon Sep 17 00:00:00 2001 From: Igor Velkov Date: Sun, 25 May 2025 18:33:57 +0300 Subject: [PATCH] Work if no customize-image.sh file present --- lib/functions/rootfs/customize.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/functions/rootfs/customize.sh b/lib/functions/rootfs/customize.sh index f861b64cad..42119716b9 100644 --- a/lib/functions/rootfs/customize.sh +++ b/lib/functions/rootfs/customize.sh @@ -20,8 +20,10 @@ function customize_image() { If you need repos, please consider `post_armbian_repo_customize_image` or `post_repo_customize_image`. PRE_CUSTOMIZE_IMAGE - cp "$USERPATCHES_PATH"/customize-image.sh "${SDCARD}"/tmp/customize-image.sh - chmod +x "${SDCARD}"/tmp/customize-image.sh + if [[ -f "$USERPATCHES_PATH"/customize-image.sh ]]; then + cp "$USERPATCHES_PATH"/customize-image.sh "${SDCARD}"/tmp/customize-image.sh + chmod +x "${SDCARD}"/tmp/customize-image.sh + fi mkdir -p "${SDCARD}"/tmp/overlay # util-linux >= 2.27 required