From 4e2d236d6ae08674765a5db9f70daf371d0d24b6 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Thu, 29 Mar 2018 16:05:28 +0800 Subject: [PATCH] Create directory /install/custom/netboot/rh as needed --- xCAT-test/autotest/testcase/cuda/rhel-cuda-diskfull-install.sh | 2 ++ xCAT-test/autotest/testcase/cuda/rhel-cuda-diskless-install.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/xCAT-test/autotest/testcase/cuda/rhel-cuda-diskfull-install.sh b/xCAT-test/autotest/testcase/cuda/rhel-cuda-diskfull-install.sh index 9d174d8dd..410da181e 100755 --- a/xCAT-test/autotest/testcase/cuda/rhel-cuda-diskfull-install.sh +++ b/xCAT-test/autotest/testcase/cuda/rhel-cuda-diskfull-install.sh @@ -100,6 +100,8 @@ do done ######## +umask 0022 + OSIMAGE_NAME="${LINUX_DISTRO}-${LINUX_ARCH}-install-cudafull" OSIMAGE_OTHERPKGDIR="/install/post/otherpkgs/${LINUX_DISTRO}/${LINUX_ARCH}" 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 bc97d8757..e8c9030b2 100755 --- a/xCAT-test/autotest/testcase/cuda/rhel-cuda-diskless-install.sh +++ b/xCAT-test/autotest/testcase/cuda/rhel-cuda-diskless-install.sh @@ -100,6 +100,8 @@ do done ######## +umask 0022 + OSIMAGE_NAME="${LINUX_DISTRO}-${LINUX_ARCH}-netboot-cudafull" OSIMAGE_OTHERPKGDIR="/install/post/otherpkgs/${LINUX_DISTRO}/${LINUX_ARCH}" OSIMAGE_ROOTIMGDIR="/install/netboot/${LINUX_DISTRO}/${LINUX_ARCH}/${OSIMAGE_NAME}" @@ -133,6 +135,7 @@ ${OSIMAGE_NAME}: EOF [ "$?" -ne "0" ] && echo "Make osimage definition failed." >&2 && exit 1 +mkdir -p "/install/custom/netboot/rh" ( cat "/opt/xcat/share/xcat/netboot/rh/compute.${LINUX_DISTRO%%.*}.${LINUX_ARCH}.postinstall" cat <<-EOF