Attempt RB_POWER_OFF before reboot.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 1 Sep 2023 12:38:53 +0000 (13:38 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 1 Sep 2023 13:17:52 +0000 (14:17 +0100)
commit8d7e14545801c2341055bda9dfe0239e9279ce10
treed1ba0ac31179fb63b77c678f3df5fa5eb2d196a2
parent9c08c62a9f4ae9a2bb8bf7029da2bcdb60a1a125
Attempt RB_POWER_OFF before reboot.

Try a clean power off before using reboot.

Also this commit adds a debugging message before each call to
reboot().  I wasn't sure if reboot(RB_POWER_OFF) happens
synchronously, apparently it does, at least on x86-64.
src/init.c