]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
make.sh: Bind-mount the QEMU helper instead of copying the binary
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Jul 2024 10:19:05 +0000 (10:19 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Jul 2024 10:19:05 +0000 (10:19 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index d436867dcfca4aebca0caa5484b709b4e20098c4..4970c13dcd4b14f44c4603f93a3a97ba42800fbd 100755 (executable)
--- 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