Handle rebooting if inside a chroot.