added check if there are kernel packages