Closed alanorth closed 7 years ago
Simple way to check if a reboot is needed after running package updates on a fresh VM:
$ if [[ $(readlink -f /vmlinuz) != /boot/vmlinuz-$(uname -r) ]]; then echo "required"; else echo "no"; fi required
From: https://github.com/trailofbits/algo/blob/master/roles/common/tasks/main.yml
Actually, this is very clever, but won't work for us because our hosts are on Linode, and the kernels are managed by the hypervisor, not the guest's package manager.
Simple way to check if a reboot is needed after running package updates on a fresh VM:
From: https://github.com/trailofbits/algo/blob/master/roles/common/tasks/main.yml