File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,17 @@ function execute_chroot_script() {
3535 if (grep -q gentoo /etc/os-release); then
3636 ROOT=" ` realpath .` " emerge --usepkgonly --oneshot --nodeps qemu
3737 else
38- cp ` which qemu-arm-static` usr/bin/qemu-arm-static
38+ if [ " ${BASE_ARCH} " != " $( uname -m) " ]; then
39+ cp ` which qemu-arm-static` usr/bin/qemu-arm-static
40+ fi
3941 fi
4042 elif [ " $BASE_ARCH " == " aarch64" ] || [ " $BASE_ARCH " == " arm64" ]; then
4143 if (grep -q gentoo /etc/os-release); then
4244 ROOT=" ` realpath .` " emerge --usepkgonly --oneshot --nodeps qemu
4345 else
44- cp ` which qemu-aarch64-static` usr/bin/qemu-aarch64-static
46+ if [ " ${BASE_ARCH} " != " $( uname -m) " ]; then
47+ cp ` which qemu-aarch64-static` usr/bin/qemu-aarch64-static
48+ fi
4549 fi
4650 fi
4751 elif [[ ( " $BASE_ARCH " == " armv7l" || " $BASE_ARCH " == " armhf" ) && " $( uname -m) " != " armv7l" ]]; then
You can’t perform that action at this time.
0 commit comments