fn write_reboot_required(image: &str) -> Result<()>
Update the /run/reboot-required file with the image that will be active after a reboot.