difftreelog
feat use systemd-run for activation
in: trunk
1 file changed
crates/fleet-base/src/deploy.rsdiffbeforeafterboth189 built.clone()189 built.clone()190 };190 };191 let switch_script = specialised.join("bin/switch-to-configuration");191 let switch_script = specialised.join("bin/switch-to-configuration");192 let mut cmd = host.cmd(switch_script).in_current_span().await?;192 let mut cmd = host.cmd("systemd-run").in_current_span().await?;193 cmd.arg("--collect")194 .arg("--no-ask-password")195 .arg("--pipe")196 .arg("--quiet")197 .arg("--service-type=exec")198 .arg("--unit=fleet-switch-to-configuration")199 .arg(switch_script);193 if deploy_kind == DeployKind::NixosLustrate {200 if deploy_kind == DeployKind::NixosLustrate {194 cmd.env("NIXOS_INSTALL_BOOTLOADER", "1");201 cmd.env("NIXOS_INSTALL_BOOTLOADER", "1");195 }202 }