Improve check for reboot
Since we have needrestart service in action, the test for reboot in sanity.yml needs to be updated too. We now have to run needrestart -k -b
and get some output like this:
NEEDRESTART-VER: 2.6
NEEDRESTART-KCUR: 4.4.110-x86_64-jb1
NEEDRESTART-KEXP: 4.4.0-112-generic
NEEDRESTART-KSTA: 3
A reboot is required if NEEDRESTART-KSTA
is either 2
or 3
.