Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/installer.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 37a12059..0070e223 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -53,10 +53,10 @@ class Installer():
fh.write(self.hostname + '\n')
def set_locale(self, locale, encoding='UTF-8'):
- with open(f'{self.mountpoint}/etc/locale.gen', 'a') as locale:
- locale.write(f'{locale} {encoding}\n')
- with open(f'{self.mountpoint}/etc/locale.conf', 'w') as locale:
- locale.write(f'LANG={locale}\n')
+ with open(f'{self.mountpoint}/etc/locale.gen', 'a') as fh:
+ fh.write(f'{locale} {encoding}\n')
+ with open(f'{self.mountpoint}/etc/locale.conf', 'w') as fh:
+ fh.write(f'LANG={locale}\n')
sys_command(f'/usr/bin/arch-chroot {self.mountpoint} locale-gen')
def minimal_installation(self):