From: Michael Tremer Date: Tue, 9 Jul 2024 10:19:05 +0000 (+0000) Subject: make.sh: Bind-mount the QEMU helper instead of copying the binary X-Git-Tag: v2.29-core188~10^2~313 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5db99637aed7412c573ceca5c266205c05a887e6;p=ipfire-2.x.git make.sh: Bind-mount the QEMU helper instead of copying the binary Signed-off-by: Michael Tremer --- diff --git a/make.sh b/make.sh index d436867dcf..4970c13dcd 100755 --- a/make.sh +++ b/make.sh @@ -1047,7 +1047,10 @@ qemu_install_helper() { local dirname="${BUILD_DIR}$(dirname "${file}")" mkdir -p "${dirname}" - install -m 755 "${file}" "${BUILD_DIR}${QEMU_TARGET_HELPER}" + # Create the mountpoint + touch "${BUILD_DIR}${QEMU_TARGET_HELPER}" + + mount --bind -o ro "${file}" "${BUILD_DIR}${QEMU_TARGET_HELPER}" return 0 done