lkrg-org / lkrg

Linux Kernel Runtime Guard
https://lkrg.org
Other
403 stars 72 forks source link

ci: docker-boot: Improve detection of kernel version #333

Closed vt-alt closed 2 months ago

vt-alt commented 2 months ago

Description

Ubuntu starts to install linux-headers-generic (linux-headers-5.15.0-102-generic) with /lib/modules/5.15.0-102-generic containing the build link, which confuses simple ls method version detection and later depmod call. Make kernel version detection similar to the other places.

Fixes: https://github.com/lkrg-org/lkrg/issues/332

How Has This Been Tested?

https://github.com/vt-alt/lkrg/actions/runs/8747621184/job/24006360510

vt-alt commented 2 months ago

One build error perhaps transient

38.60 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/i/isl/libisl19_0.19-1_i386.deb  Undetermined Error [IP: 185.125.190.36 80]

ps. I think you can restart CI to verify that.