@@ -505,10 +505,9 @@ def sync_log_to_install_medium(self) -> bool:
505505 # Copy over the install log (if there is one) to the install medium if
506506 # at least the base has been strapped in, otherwise we won't have a filesystem/structure to copy to.
507507 if self ._helper_flags .get ('base-strapped' , False ) is True :
508- absolute_logfile = logger .path
509- logfile_target = self .target / absolute_logfile
510- logfile_target .parent .mkdir (parents = True , exist_ok = True )
511- absolute_logfile .copy (logfile_target , preserve_metadata = True )
508+ logfile_target = self .target / LPath (logger .directory ).relative_to_root ()
509+ logfile_target .mkdir (parents = True , exist_ok = True )
510+ logger .path .copy_into (logfile_target , preserve_metadata = True )
512511
513512 return True
514513
@@ -1490,7 +1489,7 @@ def _add_limine_bootloader(
14901489 efi_dir_path .mkdir (parents = True , exist_ok = True )
14911490
14921491 for file in ('BOOTIA32.EFI' , 'BOOTX64.EFI' ):
1493- (limine_path / file ).copy (efi_dir_path )
1492+ (limine_path / file ).copy_into (efi_dir_path )
14941493 except Exception as err :
14951494 raise DiskError (f'Failed to install Limine in { self .target } { efi_partition .mountpoint } : { err } ' )
14961495
@@ -1539,7 +1538,7 @@ def _add_limine_bootloader(
15391538
15401539 try :
15411540 # The `limine-bios.sys` file contains stage 3 code.
1542- (limine_path / 'limine-bios.sys' ).copy (boot_limine_path )
1541+ (limine_path / 'limine-bios.sys' ).copy_into (boot_limine_path )
15431542
15441543 # `limine bios-install` deploys the stage 1 and 2 to the
15451544 self .arch_chroot (f'limine bios-install { parent_dev_path } ' , peek_output = True )
0 commit comments