From edcf754757c121efa5c33a040888f177a5a33eed Mon Sep 17 00:00:00 2001 From: Robert Sturla Date: Thu, 21 Nov 2024 11:04:08 +0000 Subject: [PATCH] chore: remove cliwrap and call dracut directly --- initramfs.sh | 2 +- install.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/initramfs.sh b/initramfs.sh index f1941f0b..adb0f5f5 100755 --- a/initramfs.sh +++ b/initramfs.sh @@ -3,5 +3,5 @@ set -eoux pipefail 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 -v --add ostree -f "/lib/modules/$QUALIFIED_KERNEL/initramfs.img" +/usr/bin/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" diff --git a/install.sh b/install.sh index 28dfbab8..21414ee3 100755 --- a/install.sh +++ b/install.sh @@ -15,7 +15,6 @@ rpm-ostree install \ fedora-repos-archive # Handle Kernel Skew with override replace -rpm-ostree cliwrap install-to-root / if [[ "${KERNEL_VERSION}" == "${QUALIFIED_KERNEL}" ]]; then echo "Installing signed kernel from kernel-cache." cd /tmp