2024-04-13 15:06:52 -08:00
|
|
|
#!/usr/bin/bash
|
|
|
|
|
|
2025-01-21 19:57:03 -09:00
|
|
|
echo "::group:: ===$(basename "$0")==="
|
|
|
|
|
|
2024-04-13 15:06:52 -08:00
|
|
|
set -oue pipefail
|
|
|
|
|
|
2025-10-24 11:11:49 -08:00
|
|
|
KERNEL_VERSION=$(rpm -q --queryformat="%{evr}.%{arch}" kernel-core)
|
2024-04-13 15:06:52 -08:00
|
|
|
|
2025-10-24 11:11:49 -08:00
|
|
|
# Ensure Initramfs is generated
|
|
|
|
|
export DRACUT_NO_XATTR=1
|
2025-12-17 08:46:51 -09:00
|
|
|
/usr/bin/dracut --no-hostonly --kver "${KERNEL_VERSION}" --reproducible -v --add "ostree fido2 tpm2-tss pkcs11 pcsc" -f "/lib/modules/${KERNEL_VERSION}/initramfs.img"
|
2025-10-24 11:11:49 -08:00
|
|
|
chmod 0600 "/lib/modules/${KERNEL_VERSION}/initramfs.img"
|
2025-01-21 19:57:03 -09:00
|
|
|
|
|
|
|
|
echo "::endgroup::"
|