1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/microshift-kickstart-bootc-install.adoc
2025-01-31 13:43:48 +00:00

56 lines
2.1 KiB
Plaintext

// Module included in the following assemblies:
//
// microshift/microshift-.adoc
:_mod-docs-content-type: PROCEDURE
[id="microshift-kickstart-bootc-install_{context}"]
= Creating a Kickstart file for installing {microshift-short} on image mode for RHEL
You can use the Kickstart file provided with {microshift-short} for an image mode for RHEL installation.
.Prerequisites
* You set up the {microshift-short} Kickstart file.
* You have the information needed to set required and optional variables.
.Procedure
. Set the required `BOOTC_IMAGE_URL` variable value to point to an image used in the RHEL Kickstart file installation process by running the following command:
+
[source,terminal]
----
$ export BOOTC_IMAGE_URL=<myregistry>/<myorg>/<mypath>/microshift-image:tag # <1>
----
<1> Replace _<myregistry>_,_<myorg>_, and _<mypath>_ with your information.
* The `BOOTC_IMAGE_URL` variable contains a reference to the image that is installed with the `ostreecontainer` command. You can specify a z-stream release other than the latest by using the tag if required.
. Optional. Add variables and values for registry authentication and configuration by using the following commands:
+
.Example commands setting optional variables
+
* Set the `AUTH_CONFIG` variable to authenticate access to the `BOOTC_IMAGE_URL` image by running the following command:
+
[source,terminal]
----
$ export AUTH_CONFIG="$(cat ~/.quay-auth.json)" # <1>
----
<1> See the `containers-auth.json(5)` manual page for more information about this file format.
+
* Set the `REGISTRY_CONFIG` variable to configure access to the registry containing the `BOOTC_IMAGE_URL` image by running the following command:
+
[source,terminal]
----
$ export REGISTRY_CONFIG="$(cat ~/.quay-config.conf)" # <1>
----
<1> See the `containers-registries.conf(5)` manual page for more information about this file format.
. Create the `kickstart.ks` file to be used during the installation by running the following command:
+
[source,terminal]
----
envsubst < \
/usr/share/microshift/kickstart/kickstart-bootc.ks.template > \
"${HOME}/kickstart.ks"
----