Skip to content

Commit 3ee4f29

Browse files
committed
bin/generate-zbm: require at least one kernel version value
Some distributions create generic symlinks to a kernel; such as vmlinuz.old. These symlinks do not encode any version information in the filename. On ARM systems, the kernel sometimes does not contain a version that can be detected via dumping strings from the file. This leads to a case where neither version string is defined, and the assumption was that one would always be defined.
1 parent d9de083 commit 3ee4f29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/generate-zbm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,9 @@ sub kernelVersion {
609609
}
610610
}
611611

612+
# Kernel is unusable if no version could be detected
613+
return if ( not nonempty $filever and not nonempty $namever );
614+
612615
# If only one is defined, that's the version
613616
unless ( nonempty $filever ) {
614617
Log("No version found in kernel strings, using $namever from path $kernel");

0 commit comments

Comments
 (0)