From fc01d3eddffe7115b7e18027493b571a163caf53 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Wed, 21 Aug 2024 08:39:28 -0700 Subject: [PATCH] feat: Add support for fsync-ba, an "LTS" version of the fsync kernel. --- .github/workflows/reusable-build.yml | 9 ++++++++- fetch.sh | 7 +++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index b9d4361..e6232e2 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -29,6 +29,7 @@ jobs: kernel_flavor: - asus - fsync + - fsync-ba - surface - main - coreos-stable @@ -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 @@ -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" @@ -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/.*://') diff --git a/fetch.sh b/fetch.sh index 7ca3d61..df5515b 100755 --- a/fetch.sh +++ b/fetch.sh @@ -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 ;; @@ -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 @@ -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 \