Skip to content

Commit

Permalink
chore(ci): always replace kernel packages (ublue-os#1752)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman authored Oct 7, 2024
1 parent 15ca334 commit 0b40fe2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
1 change: 0 additions & 1 deletion .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ jobs:
elif [[ "${{ matrix.image_flavor }}" == "main" && \
"${{ matrix.fedora_version }}" != "beta" ]]; then
echo "image_flavor=${{ matrix.image_flavor }}" >> $GITHUB_ENV
echo "nvidia_type=main" >> $GITHUB_ENV
else
echo "image_flavor=${{ matrix.image_flavor }}" >> $GITHUB_ENV
fi
Expand Down
18 changes: 8 additions & 10 deletions build_files/cache_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

set -eoux pipefail

if [[ -n "${NVIDIA_TYPE:-}" ]]; then
for pkg in kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra
do
rpm --erase $pkg --nodeps
done
for pkg in kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra
do
rpm --erase $pkg --nodeps
done

rpm-ostree install \
/tmp/kernel-rpms/kernel-[0-9]*.rpm \
/tmp/kernel-rpms/kernel-core-*.rpm \
/tmp/kernel-rpms/kernel-modules-*.rpm
fi
rpm-ostree install \
/tmp/kernel-rpms/kernel-[0-9]*.rpm \
/tmp/kernel-rpms/kernel-core-*.rpm \
/tmp/kernel-rpms/kernel-modules-*.rpm
5 changes: 0 additions & 5 deletions build_files/install-akmods.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

set -ouex pipefail

# if [[ -n "${NVIDIA_TYPE:-}" ]]; then
# curl -L -o /etc/yum.repos.d/fedora-coreos-pool.repo \
# https://raw.githubusercontent.com/coreos/fedora-coreos-config/testing-devel/fedora-coreos-pool.repo
# fi

# Nvidia for gts/stable - nvidia
if [[ "${NVIDIA_TYPE}" == "nvidia" ]]; then
curl -Lo /tmp/nvidia-install.sh https://raw.githubusercontent.com/ublue-os/hwe/main/nvidia-install.sh && \
Expand Down

0 comments on commit 0b40fe2

Please sign in to comment.