Use custom inintramfs script
This commit is contained in:
@@ -20,18 +20,11 @@ build-image:
|
||||
- docker:dind
|
||||
parallel:
|
||||
matrix:
|
||||
- RECIPE:
|
||||
- jp-desktop-nvidia.yml
|
||||
- jp-laptop.yml
|
||||
BB_BUILD_RECHUNK:
|
||||
- "true"
|
||||
- RECIPE:
|
||||
- cp-laptop.yml
|
||||
- jp-truenas.yml
|
||||
BB_BUILD_RECHUNK:
|
||||
- "true"
|
||||
BB_BUILD_RECHUNK_CLEAR_PLAN:
|
||||
- "true"
|
||||
- jp-desktop-nvidia.yml
|
||||
- jp-laptop.yml
|
||||
variables:
|
||||
DOCKER_HOST: tcp://docker:2376
|
||||
DOCKER_TLS_CERTDIR: /certs
|
||||
@@ -39,6 +32,8 @@ build-image:
|
||||
DOCKER_CERT_PATH: $DOCKER_TLS_CERTDIR/client
|
||||
RUST_LOG_STYLE: always
|
||||
CLICOLOR_FORCE: 1
|
||||
BB_BUILD_RECHUNK: "true"
|
||||
BB_BUILD_RECHUNK_CLEAR_PLAN: "true"
|
||||
before_script:
|
||||
- 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)
|
||||
|
||||
@@ -14,5 +14,5 @@ else
|
||||
fi
|
||||
|
||||
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"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
modules:
|
||||
- type: initramfs
|
||||
source: ghcr.io/blue-build/modules/initramfs:feat-initramfs
|
||||
# - type: initramfs
|
||||
- type: script
|
||||
scripts:
|
||||
- initramfs.sh
|
||||
|
||||
Reference in New Issue
Block a user