diff --git a/KubeOS-Rust/agent/src/rpc/agent_impl.rs b/KubeOS-Rust/agent/src/rpc/agent_impl.rs
index f335dab07da500debbb460226c005b7e759cca3d..1241d492b82eb96ffedbd4f0bd04590dad03ba92 100644
--- a/KubeOS-Rust/agent/src/rpc/agent_impl.rs
+++ b/KubeOS-Rust/agent/src/rpc/agent_impl.rs
@@ -154,6 +154,7 @@ impl AgentImpl {
 
     fn reboot(&self) -> Result<()> {
         info!("Wait to reboot");
+        std::io::stdout().flush();
         thread::sleep(Duration::from_secs(1));
         sync();
         if self.disable_reboot {