diff --git a/layers/meta-belden-coreos/classes/coreos-sanity.bbclass b/layers/meta-belden-coreos/classes/coreos-sanity.bbclass index f0a0386..2b9a2aa 100644 --- a/layers/meta-belden-coreos/classes/coreos-sanity.bbclass +++ b/layers/meta-belden-coreos/classes/coreos-sanity.bbclass @@ -22,12 +22,20 @@ python check_coreos_sanity_eventhandler() { "systemd is not set as `INIT_MANAGER`. " "Using SystemD is mandatory on CoreOS based distribution" ) - + if e.data.getVar("TCLIBC") != "glibc": bb.fatal( "glibc is not set as `TCLIBC`. " "Using glibc is mandatory on CoreOS based distribution" ) + virtKernel = e.data.getVar('PREFERRED_PROVIDER_virtual/kernel') + if "lts" not in virtKernel: + bb.warn( + "No LTS Linux Kernel used. " + "It is highly recommended to use a LTS version. " + "Currently used provider is: %s_%s" % (virtKernel, e.data.getVar('PREFERRED_VERSION_' + virtKernel)) + ) + return }