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
13 lines
370 B
Bash
Executable file
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::"
|