From 64e2915c3baf8fcccac954a478bac26cf1780ae6 Mon Sep 17 00:00:00 2001 From: eatradish Date: Fri, 13 Sep 2024 21:33:46 +0800 Subject: [PATCH] fix: run `systemd-nspawn` without `--boot` ... ... to make systemd not do something --- src/guest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guest.rs b/src/guest.rs index 24be2cf..25389c4 100644 --- a/src/guest.rs +++ b/src/guest.rs @@ -97,7 +97,7 @@ fn execute_container_command(ns_name: &str, args: &[&str]) -> Result { fn nspawn_do(target: &str, args: &[&str]) -> Result<()> { let ns_name = format!("bootstrap-{:x}", random::()); let mut child = Command::new("systemd-nspawn") - .args(["-qbD", target, "-M", &ns_name, "--"]) + .args(["-qD", target, "-M", &ns_name, "--"]) .stdout(Stdio::null()) .stderr(Stdio::null()) .spawn()?;