Use rpm to get kernel version instead and use dracut to build kernel modules
All checks were successful
bluebuild / Build Custom Image (recipe.yml) (pull_request) Successful in 7m42s
All checks were successful
bluebuild / Build Custom Image (recipe.yml) (pull_request) Successful in 7m42s
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
set -oue pipefail
|
||||
|
||||
echo "INFO: grab kernel module"
|
||||
KERNEL_VER=$(ls /lib/modules | head -n 1)
|
||||
KERNEL_VER="$(rpm -qa | grep -P 'kernel-(\d+\.\d+\.\d+)' | sed -E 's/kernel-//')"
|
||||
echo $KERNEL_VER
|
||||
|
||||
echo "INFO: grab open razer modules"
|
||||
|
||||
Reference in New Issue
Block a user