FIX: seperated build steps

This commit is contained in:
2026-01-06 15:28:30 +01:00
parent b48c399c00
commit b9986c0376
7 changed files with 97 additions and 35 deletions

10
build_files/04_initramfs.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/bash
set -eoux pipefail
KERNEL_VERSION="$(rpm -q --queryformat="%{evr}.%{arch}" kernel-core)"
# Ensure Initramfs is generated
export DRACUT_NO_XATTR=1
/usr/bin/dracut --no-hostonly --kver "${KERNEL_VERSION}" --reproducible -v --add ostree -f "/lib/modules/${KERNEL_VERSION}/initramfs.img"
chmod 0600 "/lib/modules/${KERNEL_VERSION}/initramfs.img"