mirror of
https://github.com/ManInDark/bootc-image.git
synced 2026-01-20 22:44:28 +01:00
10 lines
360 B
Bash
Executable File
10 lines
360 B
Bash
Executable File
#!/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" |