Skip to content

Commit a356323

Browse files
committed
skip on matches
1 parent b9bc035 commit a356323

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/custompios

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)