From 6ffc79fb8231c9292b737a52c1fae492c15a7e13 Mon Sep 17 00:00:00 2001 From: Mark Mihalik Date: Fri, 28 Jun 2024 14:00:56 -0400 Subject: [PATCH] fix: add cliwrap for initramfs gereration --- build-initramfs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-initramfs.sh b/build-initramfs.sh index 4049364e..f2fbb734 100755 --- a/build-initramfs.sh +++ b/build-initramfs.sh @@ -2,12 +2,15 @@ set -oue pipefail -if [[ "${AKMODS_FLAVOR}" == "surface" ]]; then + +if [[ "${KERNEL_FLAVOR}" == "surface" ]]; then KERNEL_SUFFIX="surface" else KERNEL_SUFFIX="" fi +rpm-ostree cliwrap install-to-root / + QUALIFIED_KERNEL="$(rpm -qa | grep -P 'kernel-(|'"$KERNEL_SUFFIX"'-)(\d+\.\d+\.\d+)' | sed -E 's/kernel-(|'"$KERNEL_SUFFIX"'-)//')" /usr/libexec/rpm-ostree/wrapped/dracut --no-hostonly --kver "$QUALIFIED_KERNEL" --reproducible -v --add ostree -f "/lib/modules/$QUALIFIED_KERNEL/initramfs.img"