28 lines
990 B
Diff
28 lines
990 B
Diff
|
|
From f2d77666e409dd9ae47c36680e9380900f02b6b9 Mon Sep 17 00:00:00 2001
|
||
|
|
From: zhangyao2022 <zhangyao108@huawei.com>
|
||
|
|
Date: Tue, 9 Apr 2024 16:04:45 +0800
|
||
|
|
Subject: [PATCH] fix: resolve wantedby invalid
|
||
|
|
|
||
|
|
---
|
||
|
|
core/sysmaster/src/manager/pre_install.rs | 4 +---
|
||
|
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/core/sysmaster/src/manager/pre_install.rs b/core/sysmaster/src/manager/pre_install.rs
|
||
|
|
index 69823478..7032117c 100644
|
||
|
|
--- a/core/sysmaster/src/manager/pre_install.rs
|
||
|
|
+++ b/core/sysmaster/src/manager/pre_install.rs
|
||
|
|
@@ -543,9 +543,7 @@ impl Install {
|
||
|
|
|
||
|
|
let mut paths: Vec<PathBuf> = Vec::new();
|
||
|
|
for p in &self.lookup_path.search_path {
|
||
|
|
- let mut path = String::new();
|
||
|
|
- path = path + p + &unit_install.name();
|
||
|
|
- paths.push(PathBuf::from(path));
|
||
|
|
+ paths.push(Path::new(p).join(&unit_install.name()));
|
||
|
|
}
|
||
|
|
|
||
|
|
let configer = match UeConfigData::load_config(paths, &unit_install.name()) {
|
||
|
|
--
|
||
|
|
2.33.0
|
||
|
|
|