Skip to content

Commit

Permalink
Merge pull request #6965 from vrutkovs/scos-skip-pivot-on-live-iso
Browse files Browse the repository at this point in the history
OCPBUGS-9982: bootstrap-pivot: skip pivot in SCOS Live ISO
  • Loading branch information
openshift-merge-robot authored Mar 23, 2023
2 parents 6fe208c + ba72368 commit 670f501
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 670f501

Please sign in to comment.