@@ -31,31 +31,31 @@ def plugin(f, *args, **kwargs) -> None: # type: ignore[no-untyped-def]
3131
3232def _log_sys_info () -> None :
3333 # Log various information about hardware before starting the installation. This might assist in troubleshooting
34- debug (f" Hardware model detected: { SysInfo .sys_vendor ()} { SysInfo .product_name ()} ; UEFI mode: { SysInfo .has_uefi ()} " )
35- debug (f" Processor model detected: { SysInfo .cpu_model ()} " )
36- debug (f" Memory statistics: { SysInfo .mem_available ()} available out of { SysInfo .mem_total ()} total installed" )
37- debug (f" Virtualization detected: { SysInfo .virtualization ()} ; is VM: { SysInfo .is_vm ()} " )
38- debug (f" Graphics devices detected: { SysInfo ._graphics_devices ().keys ()} " )
34+ debug (f' Hardware model detected: { SysInfo .sys_vendor ()} { SysInfo .product_name ()} ; UEFI mode: { SysInfo .has_uefi ()} ' )
35+ debug (f' Processor model detected: { SysInfo .cpu_model ()} ' )
36+ debug (f' Memory statistics: { SysInfo .mem_available ()} available out of { SysInfo .mem_total ()} total installed' )
37+ debug (f' Virtualization detected: { SysInfo .virtualization ()} ; is VM: { SysInfo .is_vm ()} ' )
38+ debug (f' Graphics devices detected: { SysInfo ._graphics_devices ().keys ()} ' )
3939
4040 # For support reasons, we'll log the disk layout pre installation to match against post-installation layout
41- debug (f" Disk states before installing:\n { disk_layouts ()} " )
41+ debug (f' Disk states before installing:\n { disk_layouts ()} ' )
4242
4343
4444def _fetch_arch_db () -> None :
45- info (" Fetching Arch Linux package database..." )
45+ info (' Fetching Arch Linux package database...' )
4646 try :
47- Pacman .run (" -Sy" )
47+ Pacman .run (' -Sy' )
4848 except Exception as e :
4949 debug (f'Failed to sync Arch Linux package database: { e } ' )
5050 exit (1 )
5151
5252
5353def _check_new_version () -> None :
54- info (" Checking version..." )
54+ info (' Checking version...' )
5555 upgrade = None
5656
5757 try :
58- upgrade = Pacman .run (" -Qu archinstall" ).decode ()
58+ upgrade = Pacman .run (' -Qu archinstall' ).decode ()
5959 except Exception as e :
6060 debug (f'Failed determine pacman version: { e } ' )
6161
@@ -76,7 +76,7 @@ def main() -> int:
7676 return 0
7777
7878 if os .getuid () != 0 :
79- print (_ (" Archinstall requires root privileges to run. See --help for more." ))
79+ print (_ (' Archinstall requires root privileges to run. See --help for more.' ))
8080 return 1
8181
8282 _log_sys_info ()
@@ -115,7 +115,7 @@ def run_as_a_module() -> None:
115115 text = (
116116 'Archinstall experienced the above error. If you think this is a bug, please report it to\n '
117117 'https://github.com/archlinux/archinstall and include the log file "/var/log/archinstall/install.log".\n \n '
118- ' Hint: To extract the log from a live ISO \n curl -F\ ' file=@/var/log/archinstall/install.log\ ' https://0x0.st\n '
118+ " Hint: To extract the log from a live ISO \n curl -F'file=@/var/log/archinstall/install.log' https://0x0.st\n "
119119 )
120120
121121 warn (text )
0 commit comments