pyinfra icon indicating copy to clipboard operation
pyinfra copied to clipboard

[WIP] Add RebootRequired fact for detecting system reboot needs

Open wowi42 opened this issue 9 months ago • 1 comments

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.

wowi42 avatar Mar 12 '25 05:03 wowi42

not sure if it is the best way to do it

wowi42 avatar Mar 25 '25 15:03 wowi42

@wowi42 do you mind giving me push access to the branch, I'd like to fix up the styling to get this merged!

Fizzadar avatar Jul 14 '25 10:07 Fizzadar

@Fizzadar sorry for the delay. You got access to the branch and I did some patch. We are good to go I think.

wowi42 avatar Aug 05 '25 06:08 wowi42