fn handle_soft_reboot<F>( soft_reboot_mode: Option<SoftRebootMode>, entry: Option<&BootEntry>, deployment_type: &str, execute_soft_reboot: F, ) -> Result<()>where F: FnOnce() -> Result<()>,
Handle soft reboot based on the configured mode