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
|
set -oue pipefail
|
||||||
|
|
||||||
echo "INFO: grab kernel module"
|
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 $KERNEL_VER
|
||||||
|
|
||||||
echo "INFO: grab open razer modules"
|
echo "INFO: grab open razer modules"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
set -oue pipefail
|
set -oue pipefail
|
||||||
|
|
||||||
echo "INFO: grab kernel module"
|
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 $KERNEL_VER
|
||||||
|
|
||||||
echo "INFO: grab xpad modules"
|
echo "INFO: grab xpad modules"
|
||||||
|
|||||||
8
files/scripts/regenerateinitramfs.sh
Normal file
8
files/scripts/regenerateinitramfs.sh
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Obtained from wayblue project https://github.com/wayblueorg/wayblue/blob/live/files/scripts/regenerateinitramfs.sh
|
||||||
|
|
||||||
|
set -oue pipefail
|
||||||
|
|
||||||
|
QUALIFIED_KERNEL="$(rpm -qa | grep -P 'kernel-(\d+\.\d+\.\d+)' | sed -E 's/kernel-//')"
|
||||||
|
/usr/bin/dracut --no-hostonly --kver "$QUALIFIED_KERNEL" --reproducible -v --add ostree -f "/lib/modules/$QUALIFIED_KERNEL/initramfs.img"
|
||||||
|
chmod 0600 "/lib/modules/$QUALIFIED_KERNEL/initramfs.img"
|
||||||
@@ -12,4 +12,4 @@ modules:
|
|||||||
|
|
||||||
- type: script
|
- type: script
|
||||||
scripts:
|
scripts:
|
||||||
- installxpadneomodule.sh
|
- regenerateinitramfs.sh
|
||||||
Reference in New Issue
Block a user