diff --git a/noxis-rs/src/options/preboot.rs b/noxis-rs/src/options/preboot.rs index 7c9f687..02e013f 100644 --- a/noxis-rs/src/options/preboot.rs +++ b/noxis-rs/src/options/preboot.rs @@ -103,11 +103,11 @@ pub struct PrebootParams { impl PrebootParams { pub fn validate(self) -> Result { - if !self.socket_path.exists() { + if !self.socket_path.exists() && !self.no_hostagent { return Err(Error::msg("Socket-file not found or Noxis can't read it. Cannot start")); } // existing log dir - if !self.log_to.exists() { + if !self.log_to.exists() && !self.no_logs { return Err(Error::msg("Log Directory Not Found or Noxis can't read it. Cannot start")); } // existing sock file