build_fn: Remove qemu-aarch64-static
This commit is contained in:
parent
79ad8d8aba
commit
7022ff2e28
|
@ -126,20 +126,6 @@ prepare_chroot()
|
|||
mount -t devtmpfs devtmpfs "$rootdir/dev" > /dev/null 2>&1
|
||||
mount -t devpts devpts "$rootdir/dev/pts" > /dev/null 2>&1
|
||||
mount -t tmpfs devshm "$rootdir/dev/shm" > /dev/null 2>&1
|
||||
|
||||
if uname -m | grep -q aarch64 || [ -f "/proc/sys/fs/binfmt_misc/qemu-aarch64" ]; then
|
||||
log "Cancel qemu install for arm64" internal
|
||||
else
|
||||
wget -q --show-progress -N https://github.com/multiarch/qemu-user-static/releases/download/v7.2.0-1/qemu-aarch64-static -O ./cache/qemu-aarch64-static
|
||||
install -m755 ./cache/qemu-aarch64-static "$rootdir/"
|
||||
|
||||
# shellcheck disable=SC2028
|
||||
echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/qemu-aarch64-static:PF' > /proc/sys/fs/binfmt_misc/register 2> /dev/null
|
||||
|
||||
# shellcheck disable=SC2028
|
||||
echo ':aarch64ld:M::\x7fELF\x02\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/qemu-aarch64-static:PF' > /proc/sys/fs/binfmt_misc/register 2> /dev/null
|
||||
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -157,20 +143,6 @@ detach_chroot()
|
|||
umount "$rootdir/dev/pts"
|
||||
umount "$rootdir/dev/shm"
|
||||
umount "$rootdir/dev"
|
||||
|
||||
if uname -m | grep -q aarch64; then
|
||||
log "Cancel qemu uninstall for arm64" internal
|
||||
else
|
||||
if [ -f "/proc/sys/fs/binfmt_misc/aarch64" ]; then
|
||||
echo -1 > /proc/sys/fs/binfmt_misc/aarch64 2> /dev/null
|
||||
fi
|
||||
if [ -f "/proc/sys/fs/binfmt_misc/aarch64ld" ]; then
|
||||
echo -1 > /proc/sys/fs/binfmt_misc/aarch64ld 2> /dev/null
|
||||
fi
|
||||
if [ -f "$rootdir/qemu-aarch64-static" ]; then
|
||||
rm "$rootdir/qemu-aarch64-static"
|
||||
fi
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue