镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions src/custompios
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,26 @@ function execute_chroot_script() {
fi

#black magic of qemu-arm-static
# cp `which qemu-arm-static` usr/bin
if [ "$(uname -m)" != "armv7l" ] || [ "$(uname -m)" != "aarch64" ] ; then
if [ "$(uname -m)" != "armv7l" ] && [ "$(uname -m)" != "aarch64" ] ; then
if [ "$BASE_ARCH" == "armv7l" ] || [ "$BASE_ARCH" == "armhf" ]; then
if (grep -q gentoo /etc/os-release);then
ROOT="`realpath .`" emerge --usepkgonly --oneshot --nodeps qemu
else
cp `which qemu-arm-static` usr/bin/qemu-arm-static
if [ "${BASE_ARCH}" != "$(uname -m)" ]; then
cp `which qemu-arm-static` usr/bin/qemu-arm-static
fi
fi
elif [ "$BASE_ARCH" == "aarch64" ] || [ "$BASE_ARCH" == "arm64" ]; then
if (grep -q gentoo /etc/os-release);then
ROOT="`realpath .`" emerge --usepkgonly --oneshot --nodeps qemu
else
cp `which qemu-aarch64-static` usr/bin/qemu-aarch64-static
if [ "${BASE_ARCH}" != "$(uname -m)" ]; then
cp `which qemu-aarch64-static` usr/bin/qemu-aarch64-static
fi
fi
fi
elif [[ ( "$BASE_ARCH" == "armv7l" || "$BASE_ARCH" == "armhf" ) && "$(uname -m)" != "armv7l" ]]; then
cp `which qemu-aarch64-static` usr/bin/qemu-aarch64-static
fi

cp $2 chroot_script
Expand Down