Skip to content

Commit

Permalink
chore: Populate KERNEL_SUFFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Apr 11, 2024
1 parent 0cc7b24 commit a2ada58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/initramfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a2ada58

Please sign in to comment.