FrameworkComputer / linux-docs

Linux Markdown Guides
108 stars 20 forks source link

Script for getting last version is wrong #27

Closed sergejomon closed 1 month ago

sergejomon commented 3 months ago

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}')

ctsdownloads commented 3 months ago

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 commented 1 month ago

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