From 49a097246d364ea5221658f8394aa62123c6b681 Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Sun, 18 Sep 2022 17:02:02 +0200 Subject: [PATCH] check latest kernel is running --- bundles/apt/metadata.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundles/apt/metadata.py b/bundles/apt/metadata.py index 23d300c..bf1fa14 100644 --- a/bundles/apt/metadata.py +++ b/bundles/apt/metadata.py @@ -10,6 +10,10 @@ defaults = { 'vars.sudo': True, 'check_interval': '1d', }, + 'current kernel': { + 'vars.command': 'ls /boot/vmlinuz-* | sort -V | tail -n 1 | xargs -n1 basename | cut -d "-" -f 2- | grep -q "^$(uname -r)$"', + 'check_interval': '1h', + }, }, }, }