Skip to content

Commit

Permalink
Skip using resolvconf
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
WhatAmISupposedToPutHere committed Sep 1, 2024
1 parent 54bd66e commit 585c7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/krun-guest/src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub fn configure_network() -> Result<()> {
};
if let Some(dhcpcd_path) = dhcpcd_path {
let output = Command::new(dhcpcd_path)
.args(["-M", "--nodev", "eth0"])
.args(["-M", "--nodev", "eth0", "-e", "resolvconf=does-not-exist"])
.output()
.context("Failed to execute `dhcpcd` as child process")?;
debug!(output:?; "dhcpcd output");
Expand Down

0 comments on commit 585c7f1

Please sign in to comment.