|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * microshift_install_rpm_ostree/microshift-embed-into-rpm-ostree.adoc |
| 4 | + |
| 5 | +:_mod-docs-content-type: PROCEDURE |
| 6 | +[id="microshift-enable-eus-repos_{context}"] |
| 7 | += Enabling extended support repositories for image building |
| 8 | + |
| 9 | +If you have an extended support (EUS) release of {microshift-short}, you must enable the {op-system-base-full} EUS repositories for image builder to use. If you do not have an EUS version, you can skip these steps. |
| 10 | + |
| 11 | +.Prerequisites |
| 12 | + |
| 13 | +* You have an EUS version of {microshift-short} or are updating to one. |
| 14 | +* You have root-user access to your build host. |
| 15 | +* You reviewed the link:https://docs.redhat.com/en/documentation/red_hat_build_of_microshift/{ocp-version}/html/getting_ready_to_install_microshift/microshift-install-get-ready#get-ready-install-rhde-compatibility-table_microshift-install-get-ready[{op-system-bundle} release compatibility matrix]. |
| 16 | +
|
| 17 | +include::snippets/microshift-unsupported-config-warn.adoc[leveloffset=+1] |
| 18 | + |
| 19 | +.Procedure |
| 20 | + |
| 21 | +. Update the `baseos` source by modifying the `/etc/osbuild-composer/repositories/rhel-9.4.json` file with the following values: |
| 22 | ++ |
| 23 | +[source,terminal] |
| 24 | +---- |
| 25 | +# ... |
| 26 | +"baseurl": "https://cdn.redhat.com/content/eus/rhel<9>/<9.4>//baseos/os", # <1> |
| 27 | +# ... |
| 28 | +---- |
| 29 | +<1> Replace _<9>_ with the major {op-system-base} version you are using, and replace _<9.4>_ with the _<major.minor>_ version. Be certain that the {op-system-base} version you choose is compatible with the {microshift-short} version you are using. |
| 30 | + |
| 31 | +. Optional. Apply the `baseos` update by running the following command: |
| 32 | ++ |
| 33 | +[source,terminal] |
| 34 | +---- |
| 35 | +$ sudo sed -i "s,dist/rhel<9>/<9.4>/$(uname -m)/baseos/,eus/rhel<9>/<9.4>/$(uname -m)/baseos/,g" \ |
| 36 | +/etc/osbuild-composer/repositories/rhel-<9.4>.json # <1> |
| 37 | +---- |
| 38 | +<1> Replace _<9>_ with the major {op-system-base} version you are using, and replace _<9.4>_ with the _<major.minor>_ version. Be certain that the {op-system-base} version you choose is compatible with the {microshift-short} version you are using. |
| 39 | + |
| 40 | +. Update the `appstream` source by modifying the `/etc/osbuild-composer/repositories/rhel-<major.minor>.json` file with the following values: |
| 41 | ++ |
| 42 | +[source,terminal] |
| 43 | +---- |
| 44 | +# ... |
| 45 | +"baseurl": "https://cdn.redhat.com/content/eus/rhel<9>/<9.4>//appstream/os", # <1> |
| 46 | +# ... |
| 47 | +---- |
| 48 | +<1> Replace _<9>_ with the major {op-system-base} version you are using, and replace _<9.4>_ with the _<major.minor>_ version. Be certain that the {op-system-base} version you choose is compatible with the {microshift-short} version you are using. |
| 49 | + |
| 50 | +. Optional. Apply the `appstream` update by running the following command: |
| 51 | ++ |
| 52 | +[source,terminal] |
| 53 | +---- |
| 54 | +$ sudo sed -i "s,dist/rhel<9>/<9.4>/$(uname -m)/appstream/,eus/rhel<9>/<9.4>/$(uname -m)/appstream/,g" \ |
| 55 | +/etc/osbuild-composer/repositories/rhel-<9.4>.json # <1> |
| 56 | +---- |
| 57 | +<1> Replace _<9>_ with the major {op-system-base} version you are using, and replace _<9.4>_ with the _<major.minor>_ version. Be certain that the {op-system-base} version you choose is compatible with the {microshift-short} version you are using. |
| 58 | + |
| 59 | +.Verification |
| 60 | + |
| 61 | +You can verify the repositories by using the `composer-cli` tool to display information about the source. |
| 62 | + |
| 63 | +. Verify the `baseos` source by running the following command: |
| 64 | ++ |
| 65 | +[source,terminal] |
| 66 | +---- |
| 67 | +$ sudo composer-cli sources info baseos | grep 'url =' |
| 68 | +---- |
| 69 | +.Example output |
| 70 | ++ |
| 71 | +[source,text] |
| 72 | +---- |
| 73 | +url = "https://cdn.redhat.com/content/eus/rhel9/9.4/x86_64/baseos/os" |
| 74 | +---- |
| 75 | + |
| 76 | +. Verify the `appstream` source by running the following command: |
| 77 | ++ |
| 78 | +[source,terminal] |
| 79 | +---- |
| 80 | +$ sudo composer-cli sources info appstream | grep 'url =' |
| 81 | +---- |
| 82 | +.Example output |
| 83 | ++ |
| 84 | +[source,text] |
| 85 | +---- |
| 86 | +url = "https://cdn.redhat.com/content/eus/rhel9/9.4/x86_64/appstream/os" |
| 87 | +---- |
0 commit comments