Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Commit

Permalink
Update trident-update
Browse files Browse the repository at this point in the history
Ensure that 3-digit kernel version numbers are better handled (5.9 -> 5.10)
  • Loading branch information
beanpole135 authored Dec 22, 2020
1 parent a5a6b90 commit 6a131a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion void-files/usr/bin/trident-update
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 6a131a4

Please sign in to comment.