aurora/build_files/base/19-initramfs.sh
renner 5c1ac08af6
chore: remove duplicate options from dracut (#2572)
These are already included in our base image as configuration files,
there is no need to specify them on the cli again.

See: 5f1f192f00/initramfs.yaml
2026-07-18 06:35:29 +00:00

13 lines
370 B
Bash
Executable file

#!/usr/bin/bash
echo "::group:: ===$(basename "$0")==="
set -ouex pipefail
KERNEL_VERSION=$(rpm -q --queryformat="%{evr}.%{arch}" kernel-core)
export DRACUT_NO_XATTR=1
/usr/bin/dracut --kver "${KERNEL_VERSION}" --reproducible -v -f "/usr/lib/modules/${KERNEL_VERSION}/initramfs.img"
chmod 0600 "/usr/lib/modules/${KERNEL_VERSION}/initramfs.img"
echo "::endgroup::"