Skip to content

Commit

Permalink
chore(ci): Add systemctl fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Nov 21, 2024
1 parent c131040 commit 63817ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ RUN --mount=type=cache,dst=/var/cache/rpm-ostree \
ostree container commit

# Install kernel
# For some reason, replacing the kernel makes it so a %post hook fails when using rpm-ostree cliwrap
# https://github.com/coreos/rpm-ostree/issues/4938
RUN --mount=type=cache,dst=/var/cache/rpm-ostree \
--mount=type=bind,from=kernel,src=/tmp/rpms,dst=/tmp/kernel-rpms \
rpm-ostree cliwrap install-to-root / && \
Expand All @@ -186,6 +188,7 @@ RUN --mount=type=cache,dst=/var/cache/rpm-ostree \
/tmp/kernel-rpms/kernel-core-*.rpm \
/tmp/kernel-rpms/kernel-modules-*.rpm \
/tmp/kernel-rpms/kernel-uki-virt-*.rpm && \
cp /usr/bin/systemctl.backup /usr/bin/systemctl && \
dnf5 -y install \
scx-scheds && \
/usr/libexec/containerbuild/cleanup.sh && \
Expand Down

0 comments on commit 63817ac

Please sign in to comment.