chore: Populate KERNEL_SUFFIX

This commit is contained in:
Kyle Gospodnetich 2024-04-11 16:28:14 -07:00
parent 265ac7e756
commit 51b3fa008b

View File

@ -2,4 +2,10 @@
set -oue pipefail
if [[ "${AKMODS_FLAVOR}" == "surface" ]]; then
KERNEL_SUFFIX="surface"
else
KERNEL_SUFFIX=""
fi
/usr/libexec/rpm-ostree/wrapped/dracut --no-hostonly --kver "$(rpm -qa | grep -P 'kernel-(|'"$KERNEL_SUFFIX"'-)(\d+\.\d+\.\d+)' | sed -E 's/kernel-(|'"$KERNEL_SUFFIX"'-)//')" --reproducible -v --add ostree -f /tmp/dracut