Skip to content

Commit 14303de

Browse files
NathanFlurryabcxff
authored andcommitted
fix(pegboard): fix hotss file not getting written correctly
1 parent e894776 commit 14303de

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/edge/infra/client/manager/src/actor/oci_config.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@ fn mounts(opts: &ConfigOpts) -> Result<serde_json::Value> {
252252
"source": opts.actor_path.join("resolv.conf").to_str().context("resolv.conf path")?,
253253
"options": ["rbind", "rprivate"]
254254
},
255+
{
256+
"destination": "/etc/hosts",
257+
"type": "bind",
258+
"source": opts.actor_path.join("hosts").to_str().context("hosts path")?,
259+
"options": ["rbind", "rprivate"]
260+
},
255261
]))
256262
}
257263

packages/edge/infra/client/manager/src/actor/setup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ impl Actor {
258258
tokio::try_join!(
259259
fs::write(oci_bundle_config_path, config_json),
260260
fs::write(actor_path.join("resolv.conf"), resolv_conf),
261-
fs::write(fs_path.join("hosts"), hosts_content)
261+
fs::write(actor_path.join("hosts"), hosts_content)
262262
)?;
263263

264264
let duration = timer.elapsed().as_secs_f64();

0 commit comments

Comments
 (0)