I dislike adding code here to a cookbook's internal implementation. Could the cookbook have a library that does:

```ruby
def reboot_pending? 
  node.run_state[:reboot_requested] || super
end
```