We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78987d7 commit 6505e17Copy full SHA for 6505e17
1 file changed
archinstall/lib/installer.py
@@ -506,11 +506,9 @@ def sync_log_to_install_medium(self) -> bool:
506
# at least the base has been strapped in, otherwise we won't have a filesystem/structure to copy to.
507
if self._helper_flags.get('base-strapped', False) is True:
508
absolute_logfile = logger.path
509
-
510
- if not os.path.isdir(f'{self.target}/{os.path.dirname(absolute_logfile)}'):
511
- os.makedirs(f'{self.target}/{os.path.dirname(absolute_logfile)}')
512
513
- shutil.copy2(absolute_logfile, f'{self.target}/{absolute_logfile}')
+ logfile_target = self.target / absolute_logfile
+ logfile_target.parent.mkdir(parents=True, exist_ok=True)
+ absolute_logfile.copy(logfile_target, preserve_metadata=True)
514
515
return True
516
0 commit comments