Skip to content

Commit 5e31095

Browse files
committed
https://issues.redhat.com/browse/ACM-25011
1 parent 9ae94fa commit 5e31095

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

edge_manager/edge_mgr_build_images.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ Build the operating system image with `bootc` that contains the {rhem} agent. Yo
142142
* Host configuration
143143
* Application workloads that you need
144144
145+
*Note:* You must build the operating system image on a Red Hat Enterprise Linux host that has the required entitlement for the specified `rhacm` repository.
146+
145147
Complete the following steps:
146148

147149
. Create a `Containerfile` file with the following content to build a Red Hat Enterprise Linux based operating system image that includes the {rhem} agent and configuration. Replace `rhacm-<2.x>` and `rhel-<version>` with the version of the products that you are using:
@@ -151,7 +153,7 @@ Complete the following steps:
151153
----
152154
FROM registry.redhat.io/rhel9/rhel-bootc:<required_os_version> <1>
153155
154-
RUN subscription-manager repos --enable rhacm-<2.x>-for-rhel-<version>-$(uname -m)-rpms && \
156+
RUN dnf config-manager --set-enabled rhacm-<2.x>-for-rhel-<version>-$(uname -m)-rpms && \
155157
dnf -y install flightctl-agent && \
156158
dnf -y clean all && \
157159
systemctl enable flightctl-agent.service && \

edge_manager/edge_mgr_build_images_platform.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ When building operating system images and disk images for {ocp-virt}, you can fo
1515
* Add the `open-vm-tools` guest tools to the image.
1616
* Build a disk image of type `qcow2` instead of `iso`.
1717
18+
*Note:* You must build the operating system image on a Red Hat Enterprise Linux host that has the required entitlement for the specified `rhacm` repository.
19+
1820
Complete the generic steps with changes to the following steps:
1921

2022
. Build an operating system image that is based on RHEL 9 that includes the {rhem} agent and virtual machine guest tools, but excludes the agent configuration.
@@ -26,7 +28,7 @@ Complete the generic steps with changes to the following steps:
2628
----
2729
FROM registry.redhat.io/rhel9/bootc-image-builder:latest
2830
29-
RUN subscription-manager repos --enable rhacm-<2.x>-for-rhel-<version>-$(uname -m)-rpms && \
31+
RUN dnf config-manager --set-enabled rhacm-<2.x>-for-rhel-<version>-$(uname -m)-rpms && \
3032
dnf -y install flightctl-agent && \
3133
dnf -y clean all && \
3234
systemctl enable flightctl-agent.service
@@ -115,6 +117,8 @@ When building operating system images and disk images for VMware vSphere, you ca
115117
116118
Build an operating system image that is based on RHEL 9 that includes the {rhem} agent and VM guest tools, but excludes the agent configuration.
117119

120+
*Note:* You must build the operating system image on a Red Hat Enterprise Linux host that has the required entitlement for the specified `rhacm` repository.
121+
118122
Complete the generic steps with changes to the following steps:
119123

120124
. Create a file that is named `Containerfile` with the following content. Replace `rhacm-<2.x>` and `rhel-<version>` with the version of the products that you are using:
@@ -124,7 +128,7 @@ Complete the generic steps with changes to the following steps:
124128
----
125129
FROM registry.redhat.io/rhel9/bootc-image-builder:latest
126130
127-
RUN subscription-manager repos --enable rhacm-<2.x>-for-rhel-<version>-$(uname -m)-rpms && \
131+
RUN dnf config-manager --set-enabled rhacm-<2.x>-for-rhel-<version>-$(uname -m)-rpms && \
128132
dnf -y install flightctl-agent && \
129133
dnf -y clean all && \
130134
systemctl enable flightctl-agent.service && \

0 commit comments

Comments
 (0)