check latest kernel is running

This commit is contained in:
cronekorkn 2022-09-18 17:02:02 +02:00
parent 5b66659ce2
commit 49a097246d
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw

View file

@ -10,6 +10,10 @@ defaults = {
'vars.sudo': True, 'vars.sudo': True,
'check_interval': '1d', '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',
},
}, },
}, },
} }