Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorYunus Emre Aydın <47641431+DolphyWind@users.noreply.github.com>2023-03-14 13:05:17 +0300
committerGitHub <noreply@github.com>2023-03-14 11:05:17 +0100
commitf0a6adb96dd388d62b2f6683709a8e310e6727c8 (patch)
tree65ad0edf6cab21c7eee3d4afbbf8de154e9868e2 /archinstall
parent8f6cc07062968b259bebd346521ef685c16f89dc (diff)
Fixed flake8 warnings (#1676)
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/installer.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 55bf5570..8c6a8367 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -319,7 +319,7 @@ class Installer:
partition.mount(f'{self.target}{mountpoint}', options=options)
- def add_swapfile(self, size = '4G', enable_resume = True, file='/swapfile'):
+ def add_swapfile(self, size='4G', enable_resume=True, file='/swapfile'):
if file[:1] != '/':
file = f"/{file}"
if len(file.strip()) <= 0 or file == '/':
@@ -337,7 +337,7 @@ class Installer:
self.HOOKS.append('resume')
self.KERNEL_PARAMS.append(f'resume=UUID={resume_uuid}')
- self.KERNEL_PARAMS.append(f'resume_offset={resume_offset}')
+ self.KERNEL_PARAMS.append(f'resume_offset={resume_offset}')
def post_install_check(self, *args :str, **kwargs :str) -> List[str]:
return [step for step, flag in self.helper_flags.items() if flag is False]
@@ -457,7 +457,6 @@ class Installer:
for entry in self.FSTAB_ENTRIES:
fstab_fh.write(f'{entry}\n')
-
return True
def set_hostname(self, hostname: str, *args :str, **kwargs :str) -> None: