diff --git a/crates/system-manager-engine/src/activate/etc_files.rs b/crates/system-manager-engine/src/activate/etc_files.rs index 3904d87b..33dfd6fc 100644 --- a/crates/system-manager-engine/src/activate/etc_files.rs +++ b/crates/system-manager-engine/src/activate/etc_files.rs @@ -228,34 +228,35 @@ fn list_static_entries(config_entries: &EtcFilesConfig) -> anyhow::Result {}", + file_path.display(), + link_target.display() + ); let replace_existing = config_entries .entries .iter() - .find(|e| e.1.target == target) + .find(|e| e.1.target == target_path) .map(|e| e.1.replace_existing) .unwrap_or(false); let etc_file = EtcFile { source: StorePath { - store_path: canon_path, + store_path: link_target, }, - target: PathBuf::from("/etc").join(target), + target: PathBuf::from("/etc").join(target_path), uid: 0, gid: 0, group: "".to_string(), @@ -264,12 +265,53 @@ fn list_static_entries(config_entries: &EtcFilesConfig) -> anyhow::Result