diff --git a/distro/debian/kernel.go b/distro/debian/kernel.go index 7775d9b..9b0207a 100644 --- a/distro/debian/kernel.go +++ b/distro/debian/kernel.go @@ -68,7 +68,7 @@ var ( ErrNoImagePackage = errors.New("no image package found") ) -func GetDebianKernel(version string) (dk DebianKernel, err error) { +func getDebianKernel(version string) (dk DebianKernel, err error) { dk.Version.Package = version regex := `^(linux-(image|headers)-[a-z+~0-9\.\-]*-(common|amd64|amd64-unsigned)|linux-kbuild-.*)$` @@ -289,7 +289,7 @@ func GetKernels() (kernels []DebianKernel, err error) { } } - dk, err = GetDebianKernel(version) + dk, err = getDebianKernel(version) if err != nil { if err == ErrNoBinaryPackages { slog.Warn().Err(err).Msg("") diff --git a/distro/debian/kernel_test.go b/distro/debian/kernel_test.go index 00a2153..3ff7492 100644 --- a/distro/debian/kernel_test.go +++ b/distro/debian/kernel_test.go @@ -7,7 +7,7 @@ import ( ) func TestGetDebianKernel(t *testing.T) { - dk, err := GetDebianKernel("4.17.14-1") + dk, err := getDebianKernel("4.17.14-1") if err != nil { t.Fatal(err) }