Skip to content

Commit

Permalink
fix: headers only exist for fsync
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles committed Jul 9, 2024
1 parent fd0f593 commit d6c3e3e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ if [[ "${kernel_flavor}" =~ asus|fsync ]]; then
kernel-modules-extra-"${kernel_version}" \
kernel-devel-"${kernel_version}" \
kernel-devel-matched-"${kernel_version}" \
kernel-headers-"${kernel_version}" \
kernel-uki-virt-"${kernel_version}"
elif [[ "${kernel_flavor}" == "surface" ]]; then
dnf download -y \
Expand All @@ -48,7 +47,6 @@ elif [[ "${kernel_flavor}" == "surface" ]]; then
kernel-surface-modules-extra-"${kernel_version}" \
kernel-surface-devel-"${kernel_version}" \
kernel-surface-devel-matched-"${kernel_version}" \
kernel-surface-headers-"${kernel_version}" \
kernel-surface-uki-virt-"${kernel_version}"
else
KERNEL_MAJOR_MINOR_PATCH=$(echo "$kernel_version" | cut -d '-' -f 1)
Expand All @@ -62,10 +60,14 @@ else
https://kojipkgs.fedoraproject.org//packages/kernel/"$KERNEL_MAJOR_MINOR_PATCH"/"$KERNEL_RELEASE"/"$ARCH"/kernel-modules-extra-"$kernel_version".rpm \
https://kojipkgs.fedoraproject.org//packages/kernel/"$KERNEL_MAJOR_MINOR_PATCH"/"$KERNEL_RELEASE"/"$ARCH"/kernel-devel-"$kernel_version".rpm \
https://kojipkgs.fedoraproject.org//packages/kernel/"$KERNEL_MAJOR_MINOR_PATCH"/"$KERNEL_RELEASE"/"$ARCH"/kernel-devel-matched-"$kernel_version".rpm \
https://kojipkgs.fedoraproject.org//packages/kernel/"$KERNEL_MAJOR_MINOR_PATCH"/"$KERNEL_RELEASE"/"$ARCH"/kernel-headers-"$kernel_version".rpm \
https://kojipkgs.fedoraproject.org//packages/kernel/"$KERNEL_MAJOR_MINOR_PATCH"/"$KERNEL_RELEASE"/"$ARCH"/kernel-uki-virt-"$kernel_version".rpm
fi

if [[ "${kernel_flavor}" =~ fsync ]]; then
dnf downlaod -y \
kernel-headers-"${kernel_version}"
fi

mkdir -p /tmp/rpms

mv /kernel-*.rpm /tmp/rpms

0 comments on commit d6c3e3e

Please sign in to comment.