File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,9 @@ def find_systemd_files(self) -> Iterable[Path]:
157
157
158
158
return files
159
159
160
+ def find_binfmt_files (self ) -> Iterable [Path ]:
161
+ return self ._find_file_paths_in_directory (self .appdir_install_path / AppDir .BINFMT_D_RELATIVE_LOCATION )
162
+
160
163
def copy_data_to_usr (self ):
161
164
def create_relative_symlink (src : Path , dst : Path ):
162
165
# to calculate the amount of parent directories we need to move up, we can't use relative_to directly
@@ -267,6 +270,9 @@ def deploy_file_as_is(path):
267
270
for systemd_file in self .find_systemd_files ():
268
271
deploy_file_as_is (systemd_file )
269
272
273
+ for binfmt_d_file in self .find_binfmt_files ():
274
+ deploy_file_as_is (binfmt_d_file )
275
+
270
276
def copy_appdir_contents (self ):
271
277
if os .path .exists (self .appdir_install_path ):
272
278
shutil .rmtree (self .appdir_install_path )
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ class AppDir:
19
19
SYSTEMD_RELATIVE_LOCATIONS = [
20
20
"usr/lib/systemd" ,
21
21
]
22
+ BINFMT_D_RELATIVE_LOCATION = "usr/lib/binfmt.d"
22
23
23
24
def __init__ (self , path : str | os .PathLike ):
24
25
self .path = Path (path )
You can’t perform that action at this time.
0 commit comments