Create a Kickstart file to install MicroShift on image mode for RHEL
You can use the Kickstart file provided with MicroShift for an image mode for RHEL installation.
-
You set up the MicroShift Kickstart file.
-
You have the information needed to set required and optional variables.
-
Set the required
BOOTC_IMAGE_URLvariable value to point to an image used in the RHEL Kickstart file installation process by running the following command:$ export BOOTC_IMAGE_URL=<myregistry>/<myorg>/<mypath>/microshift-image:tagReplace <myregistry>, <myorg>, and <mypath> with your information.
-
The
BOOTC_IMAGE_URLvariable contains a reference to the image that theostreecontainercommand installs. 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:
-
Set the
AUTH_CONFIGvariable to authenticate access to theBOOTC_IMAGE_URLimage by running the following command:$ export AUTH_CONFIG="$(cat ~/.quay-auth.json)"In this example, see the
containers-auth.json(5)manual page for more information about this file format. -
Set the
REGISTRY_CONFIGvariable to configure access to the registry containing theBOOTC_IMAGE_URLimage by running the following command:$ export REGISTRY_CONFIG="$(cat ~/.quay-config.conf)"In this example, see the
containers-registries.conf(5)manual page for more information about this file format.
-
-
Create the
kickstart.ksfile to be used during the installation by running the following command:envsubst < \ /usr/share/microshift/kickstart/kickstart-bootc.ks.template > \ "${HOME}/kickstart.ks"