backport reboot tool to 1.21