Use custom inintramfs script

This commit is contained in:
Gerald Pinder
2024-12-15 12:04:35 -05:00
parent 6897d9feaa
commit 65bf2ef09f
3 changed files with 9 additions and 12 deletions

View File

@@ -14,5 +14,5 @@ else
fi
QUALIFIED_KERNEL="$(rpm -qa | grep -P '^kernel-(\d+\.\d+\.\d+)' | sed -E 's/kernel-//')"
/usr/libexec/rpm-ostree/wrapped/dracut --no-hostonly --kver "${QUALIFIED_KERNEL}" --reproducible --zstd -v --add ostree -f "/lib/modules/${QUALIFIED_KERNEL}/initramfs.img"
/usr/libexec/rpm-ostree/wrapped/dracut --no-hostonly --kver "${QUALIFIED_KERNEL}" --reproducible -v --add ostree -f "/lib/modules/${QUALIFIED_KERNEL}/initramfs.img"
chmod 0600 "/lib/modules/${QUALIFIED_KERNEL}/initramfs.img"