2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Create directory /install/custom/netboot/rh as needed

This commit is contained in:
GONG Jie 2018-03-29 16:05:28 +08:00
parent a7f28efb72
commit 4e2d236d6a
2 changed files with 5 additions and 0 deletions

View File

@ -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}"

View File

@ -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