Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion ocp_install_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,14 @@ function build_installer() {
cd $OPENSHIFT_INSTALL_PATH
TAGS="libvirt baremetal" hack/build.sh
popd
cp "$OPENSHIFT_INSTALL_PATH/data/data/rhcos.json" "$OCP_DIR"
# This is only needed in rhcos.sh for old versions which lack the
# openshift-install coreos-print-stream-json option
# That landed in 4.8, and in 4.10 this file moved, so just
# skip copying it if it's not in the "old" location ref
# https://github.com/openshift/installer/pull/5252
if [ -f "$OPENSHIFT_INSTALL_PATH/data/data/rhcos.json" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "$OPENSHIFT_INSTALL_PATH/data/data/rhcos.json" should probably be yet another variable

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wasn't a variable before, and the path is decided by the installer repo - I don't understand under what circumstances someone would want to override this path, can you elaborate?

cp "$OPENSHIFT_INSTALL_PATH/data/data/rhcos.json" "$OCP_DIR"
fi
}

function baremetal_network_configuration() {
Expand Down