Skip to content

Commit acd0c19

Browse files
authored
Merge pull request #44298 from slovern/2059168
BZ2059168 removal of yum intsall steps
2 parents a4d5e9c + dd085fc commit acd0c19

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

modules/psap-driver-toolkit-using.adoc

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ As an example, the Driver Toolkit can be used as the base image for building a v
1010

1111
[NOTE]
1212
====
13-
The Driver Toolkit contains the necessary dependencies, `openssl`, `mokutil`, and `keyutils`, needed to sign a kernel module. However, in this example, the simple-kmod kernel module is not signed and therefore cannot be loaded on systems with `Secure Boot` enabled.
13+
The Driver Toolkit contains the necessary dependencies, `openssl`, `mokutil`, and `keyutils`, needed to sign a kernel module. However, in this example, the simple-kmod kernel module is not signed and therefore cannot be loaded on systems with `Secure Boot` enabled.
1414
====
1515

1616
[id="create-simple-kmod-image_{context}"]
@@ -67,21 +67,16 @@ spec:
6767
FROM DRIVER_TOOLKIT_IMAGE
6868
6969
WORKDIR /build/
70-
71-
RUN yum -y install git make sudo gcc \
72-
&& yum clean all \
73-
&& rm -rf /var/cache/dnf
74-
70+
7571
# Expecting kmod software version as an input to the build
7672
ARG KMODVER
7773
7874
# Grab the software from upstream
7975
RUN git clone https://github.com/openshift-psap/simple-kmod.git
8076
WORKDIR simple-kmod
8177
82-
# Prep and build the module
83-
RUN make buildprep KVER=$(rpm -q --qf "%{VERSION}-%{RELEASE}.%{ARCH}" kernel-core) KMODVER=${KMODVER} \
84-
&& make all KVER=$(rpm -q --qf "%{VERSION}-%{RELEASE}.%{ARCH}" kernel-core) KMODVER=${KMODVER} \
78+
# Build and install the module
79+
RUN make all KVER=$(rpm -q --qf "%{VERSION}-%{RELEASE}.%{ARCH}" kernel-core) KMODVER=${KMODVER} \
8580
&& make install KVER=$(rpm -q --qf "%{VERSION}-%{RELEASE}.%{ARCH}" kernel-core) KMODVER=${KMODVER}
8681
8782
# Add the helper tools

0 commit comments

Comments
 (0)