From 6a131a48e5336ef32c014a05940d9da5eb6baf5a Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 22 Dec 2020 09:03:56 -0500 Subject: [PATCH] Update trident-update Ensure that 3-digit kernel version numbers are better handled (5.9 -> 5.10) --- void-files/usr/bin/trident-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/void-files/usr/bin/trident-update b/void-files/usr/bin/trident-update index 6fba0b1..5dbf576 100755 --- a/void-files/usr/bin/trident-update +++ b/void-files/usr/bin/trident-update @@ -50,7 +50,7 @@ rebuildInitramfs(){ # Just take a few seconds here to rebuild that image every time # Get the currently-installed linux package name - linuxpkg=`xbps-query --regex -s 'linux[0-9]\.[0-9]$' -p "pkgname" | cut -d ' ' -f 2 | tail -1` + linuxpkg=`xbps-query --regex -s 'linux[0-9]\.[0-9]?[0-9]$' -p "pkgname" | cut -d ' ' -f 2 | sort -V | tail -1` echo "Got Linux Kernel Package: ${linuxpkg}" # Reconfigure that package xbps-reconfigure -f "${linuxpkg}"