Skip to content

Commit 82462bd

Browse files
authored
Pull latest coreos-installer image for agent appliance (#1655)
1 parent 011c2f7 commit 82462bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/06_agent_create_cluster.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function create_factory_image() {
5959
mkdir -p $HOME/.cache/agent/image_cache
6060
oc image extract --path /coreos/coreos-$(uname -m).iso:$HOME/.cache/agent/image_cache --registry-config "$PULL_SECRET_FILE" --confirm $base_iso_url
6161
local agent_iso_abs_path="$(realpath "${OCP_DIR}")"
62-
podman run --privileged --rm -v /run/udev:/run/udev -v "${agent_iso_abs_path}:${agent_iso_abs_path}" -v "$HOME/.cache/agent/image_cache/:$HOME/.cache/agent/image_cache/" quay.io/coreos/coreos-installer:release iso ignition embed -f -i "${agent_iso_abs_path}/unconfigured-agent.ign" -o "${agent_iso_abs_path}/agent.iso" $HOME/.cache/agent/image_cache/coreos-$(uname -m).iso
62+
podman run --pull=newer --privileged --rm -v /run/udev:/run/udev -v "${agent_iso_abs_path}:${agent_iso_abs_path}" -v "$HOME/.cache/agent/image_cache/:$HOME/.cache/agent/image_cache/" quay.io/coreos/coreos-installer:release iso ignition embed -f -i "${agent_iso_abs_path}/unconfigured-agent.ign" -o "${agent_iso_abs_path}/agent.iso" $HOME/.cache/agent/image_cache/coreos-$(uname -m).iso
6363

6464
if [ "${AGENT_APPLIANCE_HOTPLUG}" != true ]; then
6565
create_config_image
@@ -182,7 +182,7 @@ function disable_automated_installation() {
182182
local ign_temp_path="$(mktemp --directory)"
183183
_tmpfiles="$_tmpfiles $ign_temp_path"
184184
echo "Extracting ISO ignition..."
185-
podman run --privileged --rm -v /run/udev:/run/udev -v "${agent_iso_abs_path}:/data/agent.iso" -w /data quay.io/coreos/coreos-installer:release iso ignition show agent.iso > "${ign_temp_path}/iso.ign"
185+
podman run --pull=newer --privileged --rm -v /run/udev:/run/udev -v "${agent_iso_abs_path}:/data/agent.iso" -w /data quay.io/coreos/coreos-installer:release iso ignition show agent.iso > "${ign_temp_path}/iso.ign"
186186

187187
echo "disabling automated installation systemd services..."
188188
jq --compact-output --argjson filterlist '["apply-host-config.service", "create-cluster-and-infraenv.service", "install-status.service", "set-hostname.service", "start-cluster-installation.service"]' \

0 commit comments

Comments
 (0)