From 2dbfb4a93afc9910856348ec2446a5d636584c17 Mon Sep 17 00:00:00 2001 From: prplV Date: Mon, 16 Dec 2024 11:34:09 +0300 Subject: [PATCH] preboot fix work with params --- noxis-rs/src/options/preboot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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