Skip to content

Commit

Permalink
fix: try to extract the kernel version from RPM
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 authored Dec 26, 2024
1 parent f9f5b8a commit 469f226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
sudo apt install sbsigntool curl openssl
fi
podman run -d --rm --name ${IMAGE_NAME} ${IMAGE_REGISTRY}/${IMAGE_NAME}@${IMAGE_DIGEST} sleep 1000
KERNEL_VERSION=$(podman exec ${IMAGE_NAME} uname -r)
KERNEL_VERSION=$(podman exec ${IMAGE_NAME} rpm -q --qf "%{VERSION}-%{RELEASE}\n" kernel | tail -n 1)
podman cp ${IMAGE_NAME}:/usr/lib/modules/${KERNEL_VERSION}/vmlinuz .
podman rm -f ${IMAGE_NAME}
sbverify --list vmlinuz
Expand Down

0 comments on commit 469f226

Please sign in to comment.