Merge back reboot/poweroff notifiers rework for 5.19-rc1.