From 2429e1647f26a8c0621102a958e6b5ada06bd8b7 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Tue, 2 Jul 2024 14:28:17 +0200 Subject: [PATCH] Rebuild kernel also if the running kernel was build somewhere else. --- Machine.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machine.pm b/Machine.pm index e0071d07..6c6488cd 100644 --- a/Machine.pm +++ b/Machine.pm @@ -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'};