2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Merge pull request #5120 from neo954/cuda-test

Update the CUDA installation test script
This commit is contained in:
Weihua Hu 2018-05-29 18:08:42 +08:00 committed by GitHub
commit d328364fd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,15 +135,15 @@ ${OSIMAGE_NAME}:
EOF
[ "$?" -ne "0" ] && echo "Make osimage definition failed." >&2 && exit 1
mkdir -p "/install/custom/netboot/rh"
mkdir -p /install/custom/netboot/rh
(
cat "/opt/xcat/share/xcat/netboot/rh/compute.${LINUX_DISTRO%%.*}.${LINUX_ARCH}.postinstall"
cat <<-EOF
cp /install/postscripts/cuda_power9_setup "${OSIMAGE_ROOTIMGDIR}/rootimg/tmp/cuda_power9_setup"
chroot "${OSIMAGE_ROOTIMGDIR}/rootimg" /tmp/cuda_power9_setup
cp /install/postscripts/cuda_power9_setup "\$installroot/tmp/cuda_power9_setup"
chroot "\$installroot" /tmp/cuda_power9_setup
rm -f "${OSIMAGE_ROOTIMGDIR}/rootimg/tmp/cuda_power9_setup"
rm -f "\$installroot/tmp/cuda_power9_setup"
EOF
) >"/install/custom/netboot/rh/cudafull.${LINUX_DISTRO%%.*}.${LINUX_ARCH}.postinstall"
chmod 0755 "/install/custom/netboot/rh/cudafull.${LINUX_DISTRO%%.*}.${LINUX_ARCH}.postinstall"