preboot fix work with params

pull/14/head
prplV 2024-12-16 11:34:09 +03:00
parent 77a1e24a47
commit 2dbfb4a93a
1 changed files with 2 additions and 2 deletions

View File

@ -103,11 +103,11 @@ pub struct PrebootParams {
impl PrebootParams {
pub fn validate(self) -> Result<Self> {
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