File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,14 @@ def find_cloudproviders_files(self) -> Iterable[Path]:
149
149
self .appdir_install_path / AppDir .CLOUDPROVIDERS_FILES_RELATIVE_LOCATION
150
150
)
151
151
152
+ def find_systemd_files (self ) -> Iterable [Path ]:
153
+ files = []
154
+
155
+ for systemd_path in AppDir .SYSTEMD_RELATIVE_LOCATIONS :
156
+ files += self ._find_file_paths_in_directory (self .appdir_install_path / systemd_path )
157
+
158
+ return files
159
+
152
160
def copy_data_to_usr (self ):
153
161
def create_relative_symlink (src : Path , dst : Path ):
154
162
# to calculate the amount of parent directories we need to move up, we can't use relative_to directly
@@ -256,6 +264,9 @@ def deploy_file_as_is(path):
256
264
for cloudproviders_file in self .find_cloudproviders_files ():
257
265
deploy_file_as_is (cloudproviders_file )
258
266
267
+ for systemd_file in self .find_systemd_files ():
268
+ deploy_file_as_is (systemd_file )
269
+
259
270
def copy_appdir_contents (self ):
260
271
if os .path .exists (self .appdir_install_path ):
261
272
shutil .rmtree (self .appdir_install_path )
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ class AppDir:
16
16
ICONS_RELATIVE_LOCATION = "usr/share/icons"
17
17
MIME_FILES_RELATIVE_LOCATION = "usr/share/mime"
18
18
CLOUDPROVIDERS_FILES_RELATIVE_LOCATION = "usr/share/cloud-providers"
19
+ SYSTEMD_RELATIVE_LOCATIONS = [
20
+ "usr/lib/systemd" ,
21
+ ]
19
22
20
23
def __init__ (self , path : str | os .PathLike ):
21
24
self .path = Path (path )
You can’t perform that action at this time.
0 commit comments