Skip to content

Commit

Permalink
Rebuild kernel also if the running kernel was build somewhere else.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Jul 2, 2024
1 parent d78845a commit 2429e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Machine.pm
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ sub update_ports {

sub make_kernel {
my $version = $sysctl{'kern.version'};
$version =~ m{:(?:/usr/src)?/sys/([\w./]+)$}m
$version =~ m{:[\w/]*/sys/(arch/\w+/compile/GENERIC[\w./]*)$}m
or die "No kernel path in version: $version";
my $path = $1;
my $ncpu = $sysctl{'hw.ncpuonline'};
Expand Down

0 comments on commit 2429e16

Please sign in to comment.