Skip to content

Commit

Permalink
Merge pull request #7020 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…6965-to-release-4.13

[release-4.13] OCPBUGS-10813: bootstrap-pivot: skip pivot in SCOS Live ISO
  • Loading branch information
openshift-merge-robot authored Mar 28, 2023
2 parents cd917cf + 50e58b4 commit 0c13b44
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{{if .IsOKD -}}
#!/usr/bin/env bash
set -euo pipefail

# Exit early if pivot is attempted on SCOS Live ISO
{{if .IsSCOS -}}
source /etc/os-release
if [[ ! $(touch /usr/.test) ]] && [[ ${ID} =~ ^(centos)$ ]]; then
touch /opt/openshift/.pivot-done
exit 0
fi
{{end -}}

# Rebase to OKD's OSTree container image.
# This is required in OKD as the node is first provisioned with plain Fedora CoreOS.

Expand Down

0 comments on commit 0c13b44

Please sign in to comment.