Skip to content

Commit

Permalink
feat: Add support for fsync-ba, an "LTS" version of the fsync kernel.
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Aug 21, 2024
1 parent fd5909c commit fc01d3e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
kernel_flavor:
- asus
- fsync
- fsync-ba
- surface
- main
- coreos-stable
Expand All @@ -43,6 +44,8 @@ jobs:
kernel_flavor: coreos-testing
- fedora_version: 39
kernel_flavor: fsync
- fedora_version: 39
kernel_flavor: fsync-ba

steps:
- name: Checkout Push to Registry action
Expand All @@ -65,7 +68,7 @@ jobs:
attempt_limit: 3
attempt_delay: 15000
command: |
if [[ ${{ matrix.kernel_flavor }} =~ asus|fsync|surface ]]; then
if [[ ${{ matrix.kernel_flavor }} =~ asus|fsync|fsync-ba|surface ]]; then
container_name="fq-$(uuidgen)"
dnf="podman exec $container_name dnf"
Expand Down Expand Up @@ -125,6 +128,10 @@ jobs:
$dnf copr enable -y sentry/kernel-fsync
linux=$($dnf repoquery --repoid copr:copr.fedorainfracloud.org:sentry:kernel-fsync --whatprovides kernel | sort -V | tail -n1 | sed 's/.*://')
;;
"fsync-ba")
$dnf copr enable -y sentry/kernel-ba
linux=$($dnf repoquery --repoid copr:copr.fedorainfracloud.org:sentry:kernel-ba --whatprovides kernel | sort -V | tail -n1 | sed 's/.*://')
;;
"surface")
$dnf config-manager --add-repo=https://pkg.surfacelinux.com/fedora/linux-surface.repo
linux=$($dnf repoquery --repoid linux-surface --whatprovides kernel-surface | sort -V | tail -n1 | sed 's/.*://')
Expand Down
7 changes: 5 additions & 2 deletions fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ case "$kernel_flavor" in
"fsync")
dnf copr enable -y sentry/kernel-fsync
;;
"fsync-ba")
dnf copr enable -y sentry/kernel-ba
;;
"surface")
dnf config-manager --add-repo=https://pkg.surfacelinux.com/fedora/linux-surface.repo
;;
Expand Down Expand Up @@ -71,7 +74,7 @@ else

fi

if [[ "${kernel_flavor}" =~ fsync ]]; then
if [[ "${kernel_flavor}" =~ fsync|fsync-ba ]]; then
dnf download -y \
kernel-headers-"${kernel_version}"
fi
Expand All @@ -90,7 +93,7 @@ openssl x509 -in /tmp/certs/public_key.der -out /tmp/certs/public_key.crt
install -Dm644 /tmp/certs/public_key.crt "$PUBLIC_KEY_PATH"
install -Dm644 /tmp/certs/private_key.priv "$PRIVATE_KEY_PATH"

if [[ "${kernel_flavor}" =~ asus|fsync ]]; then
if [[ "${kernel_flavor}" =~ asus|fsync|fsync-ba ]]; then
dnf install -y \
/kernel-"$kernel_version".rpm \
/kernel-modules-"$kernel_version".rpm \
Expand Down

0 comments on commit fc01d3e

Please sign in to comment.