Skip to content

Commit

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

[release-4.12] OCPBUGS-10992: bootstrap-pivot: skip pivot in SCOS Live ISO
  • Loading branch information
openshift-merge-robot authored Sep 26, 2023
2 parents f4d2228 + 71eb7f0 commit b35b212
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 b35b212

Please sign in to comment.