From 648975c207eb92c55506f027acc42cad04a06352 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Tue, 10 Apr 2018 16:55:15 +0800 Subject: [PATCH] Use $installroot as needed --- .../autotest/testcase/cuda/rhel-cuda-diskless-install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-test/autotest/testcase/cuda/rhel-cuda-diskless-install.sh b/xCAT-test/autotest/testcase/cuda/rhel-cuda-diskless-install.sh index e8c9030b2..01718f42b 100755 --- a/xCAT-test/autotest/testcase/cuda/rhel-cuda-diskless-install.sh +++ b/xCAT-test/autotest/testcase/cuda/rhel-cuda-diskless-install.sh @@ -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"