Skip to content

Commit 7f96af6

Browse files
committed
add a missing change
1 parent 66a4d23 commit 7f96af6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

distrod/libs/src/distro.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,11 @@ fn mount_per_user_wsl_envs_script(distro_launcher: &mut DistroLauncher) -> Resul
264264
}
265265

266266
fn mount_slash_run_static_files(distro_launcher: &mut DistroLauncher) -> Result<()> {
267-
for path in glob::glob(&format!("{}/**/*", distrod_config::get_distrod_run_dir()))
268-
.with_context(|| "glob failed.")?
267+
for path in glob::glob(&format!(
268+
"{}/**/*",
269+
distrod_config::get_distrod_run_overlay_dir()
270+
))
271+
.with_context(|| "glob failed.")?
269272
{
270273
let path = path?;
271274
log::trace!("mount_distrod_run_files: path: {:?}", &path);
@@ -274,12 +277,12 @@ fn mount_slash_run_static_files(distro_launcher: &mut DistroLauncher) -> Result<
274277
}
275278
let dest_mount_path = ContainerPath::new(
276279
Path::new("/run").join(
277-
path.strip_prefix(distrod_config::get_distrod_run_dir())
280+
path.strip_prefix(distrod_config::get_distrod_run_overlay_dir())
278281
.with_context(|| {
279282
format!(
280283
"[BUG] {:?} should starts with {:?}",
281284
&path,
282-
distrod_config::get_distrod_run_dir()
285+
distrod_config::get_distrod_run_overlay_dir()
283286
)
284287
})?,
285288
),

0 commit comments

Comments
 (0)