mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
make.sh: Bind-mount the QEMU helper instead of copying the binary
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
5
make.sh
5
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user