diff options
| author | Sergio <sergiotarxz@posteo.net> | 2026-09-06 15:17:55 +0200 |
|---|---|---|
| committer | Sergio <sergiotarxz@posteo.net> | 2026-09-06 15:17:55 +0200 |
| commit | 3f6ddb89e7b238afdf6dc34821572d6321694bfa (patch) | |
| tree | 2fc398d063a0473e65ad83375b84897a5f247da5 /scripts | |
| parent | 866582b643a300234804598d8cadd76154b0bc2d (diff) | |
Better version sort
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/build.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build.pl b/scripts/build.pl index 852eea2..db898ea 100644 --- a/scripts/build.pl +++ b/scripts/build.pl @@ -230,7 +230,7 @@ sub create_iso { my $grub_dir = "$contents_path/boot/grub"; system qw{mkdir -pv}, $grub_dir; open my $fh, '>', "$grub_dir/grub.cfg"; - my ($kver) = glob("$rootfs_path/boot/kernel-*"); + my ($kver) = reverse glob("$rootfs_path/boot/kernel-*"); die "No kernel found in $rootfs_path/boot\n" unless $kver; $kver =~ s{.*/kernel-}{}; |
