mirror of
https://github.com/ublue-os/akmods.git
synced 2026-11-03 14:59:42 -09:00
* feat: add support for kernel-longterm-6.12 This adds kmods builds for kwizart/kernel-longterm-6.12 * disable extra builds and fix condition * download proper name * get correct version * oops * more generic? * use kernel-longterm * rebuild longterm * fix Containerfile contidionals * i welcome the new refactor * verify longterm secureboot * query proper kernel name in build zfs * use KERNEL_NAME in test * include libatomic * fun atomic typos * handle non-standard kernel names in ZFS build * need the variable to work * re-enable other builds
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
###
|
|
### Containerfile.test - used to test akmods
|
|
###
|
|
|
|
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-42}"
|
|
ARG BUILDER_IMAGE="${BUILDER_IMAGE:-quay.io/fedora/fedora}"
|
|
ARG BUILDER_BASE="${BUILDER_IMAGE}:${FEDORA_MAJOR_VERSION}"
|
|
ARG INPUT_AKMODS="${INPUT_AKMODS:-akmods}"
|
|
ARG INPUT_TAG="${INPUT_TAG:-${KERNEL_FLAVOR}-${FEDORA_MAJOR_VERSION}}"
|
|
ARG INPUT_BASE="${INPUT_AKMODS}:${INPUT_TAG}"
|
|
FROM ${INPUT_BASE} AS akmods_cache
|
|
FROM ${BUILDER_BASE} AS tester
|
|
|
|
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-42}"
|
|
ARG KERNEL_FLAVOR="${KERNEL_FLAVOR:-main}"
|
|
ARG RPMFUSION_MIRROR=""
|
|
ARG DUAL_SIGN="true"
|
|
|
|
COPY build_files/shared /tmp/
|
|
COPY certs /tmp/certs
|
|
|
|
# cached kernel rpms
|
|
COPY --from=akmods_cache /kernel-rpms /tmp/kernel_cache
|
|
COPY --from=akmods_cache /rpms /tmp/akmods-rpms
|
|
|
|
RUN --mount=type=cache,dst=/var/cache/dnf \
|
|
if [[ "${KERNEL_FLAVOR}" =~ "surface" ]]; then \
|
|
export KERNEL_NAME="kernel-surface" \
|
|
; elif [[ "${KERNEL_FLAVOR}" =~ "longterm" ]]; then \
|
|
export KERNEL_NAME="kernel-longterm" \
|
|
; else \
|
|
export KERNEL_NAME="kernel" \
|
|
; fi && \
|
|
/tmp/test-prep.sh
|
|
|
|
CMD ["/tmp/check-signatures.sh"]
|