make.sh: Fix mounting the QEMU helper binary

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-07-09 20:16:41 +00:00
parent 1090b297aa
commit 75493bbcb3

View File

@@ -974,11 +974,11 @@ qemu_install_helper() {
mkdir -p "${dirname}"
# Create the mountpoint
touch "${BUILD_DIR}${QEMU_TARGET_HELPER}"
touch "${BUILD_DIR}${file}"
# Mount the helper
if ! mount --bind -o ro "${file}" "${BUILD_DIR}${qemu_build_helper}"; then
exiterror "Could not mount ${qemu_build_helper}"
if ! mount --bind -o ro "${file}" "${BUILD_DIR}${file}"; then
exiterror "Could not mount ${file}"
fi
# Set