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-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f65ca80b6c92d1047cd1602bb55c6e54265db6ea;p=people%2Fms%2Fipfire-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 d436867dc..4970c13dc 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