Use custom inintramfs script

This commit is contained in:
Gerald Pinder
2024-12-15 12:04:35 -05:00
parent 6897d9feaa
commit 65bf2ef09f
3 changed files with 9 additions and 12 deletions

View File

@@ -20,18 +20,11 @@ build-image:
- docker:dind - docker:dind
parallel: parallel:
matrix: matrix:
- RECIPE:
- jp-desktop-nvidia.yml
- jp-laptop.yml
BB_BUILD_RECHUNK:
- "true"
- RECIPE: - RECIPE:
- cp-laptop.yml - cp-laptop.yml
- jp-truenas.yml - jp-truenas.yml
BB_BUILD_RECHUNK: - jp-desktop-nvidia.yml
- "true" - jp-laptop.yml
BB_BUILD_RECHUNK_CLEAR_PLAN:
- "true"
variables: variables:
DOCKER_HOST: tcp://docker:2376 DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_CERTDIR: /certs DOCKER_TLS_CERTDIR: /certs
@@ -39,6 +32,8 @@ build-image:
DOCKER_CERT_PATH: $DOCKER_TLS_CERTDIR/client DOCKER_CERT_PATH: $DOCKER_TLS_CERTDIR/client
RUST_LOG_STYLE: always RUST_LOG_STYLE: always
CLICOLOR_FORCE: 1 CLICOLOR_FORCE: 1
BB_BUILD_RECHUNK: "true"
BB_BUILD_RECHUNK_CLEAR_PLAN: "true"
before_script: before_script:
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash - curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
- export COSIGN_PRIVATE_KEY=$(cat .secure_files/cosign.key) - export COSIGN_PRIVATE_KEY=$(cat .secure_files/cosign.key)

View File

@@ -14,5 +14,5 @@ else
fi fi
QUALIFIED_KERNEL="$(rpm -qa | grep -P '^kernel-(\d+\.\d+\.\d+)' | sed -E 's/kernel-//')" QUALIFIED_KERNEL="$(rpm -qa | grep -P '^kernel-(\d+\.\d+\.\d+)' | sed -E 's/kernel-//')"
/usr/libexec/rpm-ostree/wrapped/dracut --no-hostonly --kver "${QUALIFIED_KERNEL}" --reproducible --zstd -v --add ostree -f "/lib/modules/${QUALIFIED_KERNEL}/initramfs.img" /usr/libexec/rpm-ostree/wrapped/dracut --no-hostonly --kver "${QUALIFIED_KERNEL}" --reproducible -v --add ostree -f "/lib/modules/${QUALIFIED_KERNEL}/initramfs.img"
chmod 0600 "/lib/modules/${QUALIFIED_KERNEL}/initramfs.img" chmod 0600 "/lib/modules/${QUALIFIED_KERNEL}/initramfs.img"

View File

@@ -1,3 +1,5 @@
modules: modules:
- type: initramfs # - type: initramfs
source: ghcr.io/blue-build/modules/initramfs:feat-initramfs - type: script
scripts:
- initramfs.sh