Commit ac1d259
Extract kernel version from generated deb package
Currently kernel version is being extracted from the avaliable
files present in the rootfs.
vmlinuz-6.17.0-00001-g7b3ecb1fbc38
vmlinuz-6.17.0-5-generic
kernel_ver=\$(ls /boot/vmlinuz-* | sed 's|.*/vmlinuz-||' | sort -V | tail -n1)
With 6.17 kernel version being generated is kernel-6.17.0-00001-g7b3ecb1fbc38,
and the above condition is failing and returning the generic kernel version
6.17.0-5-generic
To fix this use the kernel version from the kernel debian package that is
generated from the build.
Signed-off-by: Salendarsingh Gaud <[email protected]>1 parent 273d6fc commit ac1d259
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| |||
0 commit comments