Release 0.8.1
This commit is contained in:
parent
0349a6b7ad
commit
5c9c0b463b
|
@ -3,7 +3,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
our $VERSION = '0.8.0';
|
||||
our $VERSION = '0.8.1';
|
||||
|
||||
use Getopt::Long qw(:config no_ignore_case auto_version);
|
||||
use Pod::Usage qw(pod2usage);
|
||||
|
@ -224,7 +224,7 @@ if ( defined( $config{syslinux}{CreateConfig} ) and ( $config{syslinux}{CreateCo
|
|||
push( @components, $entry );
|
||||
}
|
||||
|
||||
$runConf{syslinux_temp} = join('/', $tempdir, 'syslinux.conf');
|
||||
$runConf{syslinux_temp} = join( '/', $tempdir, 'syslinux.conf' );
|
||||
open CFG, '>', $runConf{syslinux_temp};
|
||||
|
||||
my $header = <<'EOF';
|
||||
|
@ -241,12 +241,13 @@ EOF
|
|||
while (@components) {
|
||||
my $entry = pop(@components);
|
||||
|
||||
my $directory = dirname( $entry );
|
||||
my $directory = dirname($entry);
|
||||
|
||||
# Strip the mountpoint prefix out to generate a correct path based on /
|
||||
$directory =~ s/\Q$config{Global}{BootMountPoint}//;
|
||||
|
||||
my $kernel = basename( $entry );
|
||||
my (undef,$version) = split('-', $kernel );
|
||||
my $kernel = basename($entry);
|
||||
my ( undef, $version ) = split( '-', $kernel );
|
||||
my $label = "ZFSBootMenu-$version";
|
||||
my $menu_label = "ZFS Boot Menu v$version";
|
||||
|
||||
|
@ -280,7 +281,7 @@ sub latestKernel {
|
|||
my $glob = join( '/', ( $runConf{bootdir}, $prefix ) );
|
||||
my @kernels = glob($glob);
|
||||
next if !@kernels;
|
||||
for (sort { versioncmp($b, $a) } @kernels ) {
|
||||
for ( sort { versioncmp( $b, $a ) } @kernels ) {
|
||||
return $_;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,4 +18,4 @@ Copies=0
|
|||
|
||||
[syslinux]
|
||||
CreateConfig=0
|
||||
Config=/boot/efi/syslinux/syslinux.cfg
|
||||
Config=/boot/syslinux/syslinux.cfg
|
||||
|
|
Loading…
Reference in New Issue