mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-28 22:13:30 +00:00
chore: Use the same kernel version check as EyeCantCU/kernel-signer
This commit is contained in:
parent
b0b719a175
commit
0cc7b24bf1
@ -2,11 +2,4 @@
|
||||
|
||||
set -oue pipefail
|
||||
|
||||
if [[ "${AKMODS_FLAVOR}" == "surface" ]]; then
|
||||
KERNEL_NAME=kernel-surface
|
||||
else
|
||||
KERNEL_NAME=kernel
|
||||
fi
|
||||
|
||||
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{FEDORA_VERSION}-%{RELEASE}.%{ARCH}')"
|
||||
/usr/libexec/rpm-ostree/wrapped/dracut --no-hostonly --kver "${KERNEL}" --reproducible -v --add ostree -f /tmp/dracut
|
||||
/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
|
Loading…
x
Reference in New Issue
Block a user