From 5db99637aed7412c573ceca5c266205c05a887e6 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 9 Jul 2024 10:19:05 +0000 Subject: [PATCH] make.sh: Bind-mount the QEMU helper instead of copying the binary Signed-off-by: Michael Tremer --- make.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.47.3