linux-docs icon indicating copy to clipboard operation
linux-docs copied to clipboard

Script for getting last version is wrong

Open sergejomon opened this issue 1 year ago • 2 comments

sergejomon avatar Apr 08 '24 15:04 sergejomon

When listing available boot option in /boot I get the following result

/boot/vmlinuz-6.1.0-1036-oem /boot/vmlinuz-6.5.0-1019-oem /boot/vmlinuz-6.5.0-27-generic

The given script doesn't return vmlinuz-6.5.0-1019-oem as it should but vmlinuz-6.1.0-1036-oem $(ls /boot/vmlinuz-* | awk -F"-" '{split($0, a, "-"); version=a[3]; if (version>max) {max=version; kernel=a[2] "-" a[3] "-" a[4]}} END{print kernel}')

sergejomon avatar Apr 08 '24 15:04 sergejomon

Will repro ASAP. On the surface, it looks like the issue was changing from OEM C to OEM D, which may not have taken correctly on your system.

Edit: Did not have time to repro this yet. Will look into it ASAP.

ctsdownloads avatar Apr 08 '24 16:04 ctsdownloads

Tested 6 times, was unable to replicate any issues whatsoever.

ctsdownloads avatar Jun 17 '24 20:06 ctsdownloads