File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 22import platform
33import re
44import shlex
5- import shutil
65import subprocess
76import textwrap
87import time
@@ -1483,7 +1482,7 @@ def _add_limine_bootloader(
14831482 efi_dir_path .mkdir (parents = True , exist_ok = True )
14841483
14851484 for file in ('BOOTIA32.EFI' , 'BOOTX64.EFI' ):
1486- shutil . copy (limine_path / file , efi_dir_path )
1485+ (limine_path / file ). copy ( efi_dir_path )
14871486 except Exception as err :
14881487 raise DiskError (f'Failed to install Limine in { self .target } { efi_partition .mountpoint } : { err } ' )
14891488
@@ -1532,7 +1531,7 @@ def _add_limine_bootloader(
15321531
15331532 try :
15341533 # The `limine-bios.sys` file contains stage 3 code.
1535- shutil . copy (limine_path / 'limine-bios.sys' , boot_limine_path )
1534+ (limine_path / 'limine-bios.sys' ). copy ( boot_limine_path )
15361535
15371536 # `limine bios-install` deploys the stage 1 and 2 to the
15381537 self .arch_chroot (f'limine bios-install { parent_dev_path } ' , peek_output = True )
Original file line number Diff line number Diff line change 11import re
22from pathlib import Path
3- from shutil import copy2
43
54from archinstall .lib .models .packages import Repository
65from archinstall .lib .pathnames import PACMAN_CONF
@@ -52,4 +51,4 @@ def apply(self) -> None:
5251
5352 def persist (self ) -> None :
5453 if self ._repositories and self ._config_remote_path :
55- copy2 ( PACMAN_CONF , self ._config_remote_path )
54+ PACMAN_CONF . copy ( self ._config_remote_path , preserve_metadata = True )
You can’t perform that action at this time.
0 commit comments