Commit 0fd652d
committed
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 47be43d commit 0fd652d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| |||
0 commit comments