Skip to content

Commit bdd68af

Browse files
authored
Merge pull request #45148 from slovern/BZ2063509
BZ2063509 replace sha256 image path with image name
2 parents 21253f7 + f1cb88c commit bdd68af

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

modules/ipi-install-creating-an-rhcos-images-cache.adoc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ $ sudo restorecon -Rv /home/kni/rhcos_image_cache/
6464
$ export RHCOS_QEMU_URI=$(/usr/local/bin/openshift-baremetal-install coreos print-stream-json | jq -r --arg ARCH "$(arch)" '.architectures[$ARCH].artifacts.qemu.formats["qcow2.gz"].disk.location')
6565
----
6666
67-
. Get the path where the image is published:
67+
. Get the name of the image that the installation program will deploy on the bootstrap VM:
6868
+
6969
[source,terminal]
7070
----
71-
$ export RHCOS_QEMU_PATH=$(/usr/local/bin/openshift-baremetal-install coreos print-stream-json | jq -r --arg ARCH "$(arch)" '.architectures[$ARCH].artifacts.qemu.formats["qcow2.gz"].disk["sha256"]')
71+
$ export RHCOS_QEMU_NAME=${RHCOS_QEMU_URI##*/}
7272
----
7373

7474
. Get the SHA hash for the {op-system} image that will be deployed on the bootstrap VM:
@@ -82,7 +82,7 @@ $ export RHCOS_QEMU_UNCOMPRESSED_SHA256=$(/usr/local/bin/openshift-baremetal-ins
8282
+
8383
[source,terminal]
8484
----
85-
$ curl -L ${RHCOS_QEMU_URI} -o /home/kni/rhcos_image_cache/${RHCOS_QEMU_PATH}
85+
$ curl -L ${RHCOS_QEMU_URI} -o /home/kni/rhcos_image_cache/${RHCOS_QEMU_NAME}
8686
----
8787

8888
. Confirm SELinux type is of `httpd_sys_content_t` for the new file:
@@ -115,7 +115,7 @@ $ export BAREMETAL_IP=$(ip addr show dev baremetal | awk '/inet /{print $2}' | c
115115
+
116116
[source,terminal]
117117
----
118-
$ export BOOTSTRAP_OS_IMAGE="http://${BAREMETAL_IP}:8080/${RHCOS_QEMU_PATH}?sha256=${RHCOS_QEMU_UNCOMPRESSED_SHA256}"
118+
$ export BOOTSTRAP_OS_IMAGE="http://${BAREMETAL_IP}:8080/${RHCOS_QEMU_NAME}?sha256=${RHCOS_QEMU_UNCOMPRESSED_SHA256}"
119119
----
120120
+
121121
[source,terminal]
@@ -129,7 +129,8 @@ $ echo " bootstrapOSImage=${BOOTSTRAP_OS_IMAGE}"
129129
----
130130
platform:
131131
baremetal:
132-
bootstrapOSImage: http://<BAREMETAL_IP>:8080/<RHCOS_QEMU_PATH>?sha256=<RHCOS_QEMU_UNCOMPRESSED_SHA256>
132+
bootstrapOSImage: <bootstrap_os_image> <1>
133133
----
134+
<1> Replace `<bootstrap_os_image>` with the value of `$BOOTSTRAP_OS_IMAGE`.
134135
+
135136
See the "Configuration files" section for additional details.

0 commit comments

Comments
 (0)