Fix typo in function parameter
`suppress_errors` was previously spelt `surpress_errors`
This commit is contained in:
parent
da59378cc4
commit
e4f363ce7d
|
|
@ -75,7 +75,7 @@ class sys_command():#Thread):
|
|||
def __init__(self, cmd, callback=None, start_callback=None, *args, **kwargs):
|
||||
if not 'worker_id' in kwargs: kwargs['worker_id'] = gen_uid()
|
||||
if not 'emulate' in kwargs: kwargs['emulate'] = False
|
||||
if not 'surpress_errors' in kwargs: kwargs['surpress_errors'] = False
|
||||
if not 'suppress_errors' in kwargs: kwargs['suppress_errors'] = False
|
||||
if kwargs['emulate']:
|
||||
log(f"Starting command '{cmd}' in emulation mode.")
|
||||
self.raw_cmd = cmd
|
||||
|
|
@ -238,7 +238,7 @@ class sys_command():#Thread):
|
|||
if 'ignore_errors' in self.kwargs:
|
||||
self.exit_code = 0
|
||||
|
||||
if self.exit_code != 0 and not self.kwargs['surpress_errors']:
|
||||
if self.exit_code != 0 and not self.kwargs['suppress_errors']:
|
||||
log(f"'{self.raw_cmd}' did not exit gracefully, exit code {self.exit_code}.")
|
||||
log(self.trace_log.decode('UTF-8'))
|
||||
raise SysCallError(f"'{self.raw_cmd}' did not exit gracefully, exit code {self.exit_code}.\n{self.trace_log.decode('UTF-8')}")
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ def perform_installation(device, boot_partition, language, mirrors):
|
|||
installation.user_set_pw('root', root_pw)
|
||||
|
||||
# Unmount and close previous runs (in case the installer is restarted)
|
||||
archinstall.sys_command(f'umount -R /mnt', surpress_errors=True)
|
||||
archinstall.sys_command(f'cryptsetup close /dev/mapper/luksloop', surpress_errors=True)
|
||||
archinstall.sys_command(f'umount -R /mnt', suppress_errors=True)
|
||||
archinstall.sys_command(f'cryptsetup close /dev/mapper/luksloop', suppress_errors=True)
|
||||
|
||||
"""
|
||||
First, we'll ask the user for a bunch of user input.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import archinstall, getpass
|
||||
|
||||
# Unmount and close previous runs
|
||||
archinstall.sys_command(f'umount -R /mnt', surpress_errors=True)
|
||||
archinstall.sys_command(f'cryptsetup close /dev/mapper/luksloop', surpress_errors=True)
|
||||
archinstall.sys_command(f'umount -R /mnt', suppress_errors=True)
|
||||
archinstall.sys_command(f'cryptsetup close /dev/mapper/luksloop', suppress_errors=True)
|
||||
|
||||
# Select a harddrive and a disk password
|
||||
harddrive = archinstall.select_disk(archinstall.all_disks())
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import urllib.request
|
|||
import git
|
||||
|
||||
# Unmount and close previous runs (Mainly only used for re-runs, but won't hurt.)
|
||||
archinstall.sys_command(f'umount -R /mnt', surpress_errors=True)
|
||||
archinstall.sys_command(f'cryptsetup close /dev/mapper/luksloop', surpress_errors=True)
|
||||
archinstall.sys_command(f'umount -R /mnt', suppress_errors=True)
|
||||
archinstall.sys_command(f'cryptsetup close /dev/mapper/luksloop', suppress_errors=True)
|
||||
|
||||
# Select a harddrive and a disk password
|
||||
harddrive = archinstall.all_disks()['/dev/sda']
|
||||
|
|
|
|||
Loading…
Reference in New Issue