pyinfra
pyinfra copied to clipboard
[WIP] Add RebootRequired fact for detecting system reboot needs
Introduces a new fact to check if a system requires a reboot across different Unix-like systems:
- Linux: Checks /var/run/reboot-required files and Alpine Linux kernel comparison
- FreeBSD: Compares running and installed kernel versions
Supports detection methods for Linux and FreeBSD systems with a flexible shell script approach.
not sure if it is the best way to do it
@wowi42 do you mind giving me push access to the branch, I'd like to fix up the styling to get this merged!
@Fizzadar sorry for the delay. You got access to the branch and I did some patch. We are good to go I think.