Skip to content

Commit 585c7f1

Browse files
Skip using resolvconf
On systems with systemd-resolved installed, dhcpcd tries to use resolvconf to configure the dns server. Naturally this fails, as we do not have systemd &co inside the vm. Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
1 parent 54bd66e commit 585c7f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/krun-guest/src/net.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn configure_network() -> Result<()> {
2828
};
2929
if let Some(dhcpcd_path) = dhcpcd_path {
3030
let output = Command::new(dhcpcd_path)
31-
.args(["-M", "--nodev", "eth0"])
31+
.args(["-M", "--nodev", "eth0", "-e", "resolvconf=does-not-exist"])
3232
.output()
3333
.context("Failed to execute `dhcpcd` as child process")?;
3434
debug!(output:?; "dhcpcd output");

0 commit comments

Comments
 (0)