Merge pull request #679 from Amulyam24/fix-initrd-ppc64le

osbuilder: fix rootfs build on ppc64le
This commit is contained in:
Pradipta Kumar 2020-09-09 12:32:28 +05:30 committed by GitHub
commit 8667df4d09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -538,9 +538,10 @@ EOT
AGENT_DEST="${AGENT_DIR}/${AGENT_BIN}"
if [ -z "${AGENT_SOURCE_BIN}" ] ; then
[ "$ARCH" == "ppc64le" ] && ([ "$LIBC" == "gnu" ] || die "LIBC type for ppc64le should be gnu")
bash ${script_dir}/../../../ci/install_musl.sh
# rust agent needs ${arch}-unknown-linux-musl
rustup show | grep linux-musl > /dev/null || bash ${script_dir}/../../../ci/install_rust.sh
# rust agent needs ${arch}-unknown-linux-${LIBC}
rustup show | grep linux-${LIBC} > /dev/null || bash ${script_dir}/../../../ci/install_rust.sh
test -r "${HOME}/.cargo/env" && source "${HOME}/.cargo/env"
[ "$ARCH" == "aarch64" ] && OLD_PATH=$PATH && export PATH=$PATH:/usr/local/musl/bin