Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-07-08 21:12:29 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-07-08 21:12:29 +0000
commit6c3be5de959462da8d0dce51a8ed8de819ee5cfc (patch)
treec88074064f528545d2488337d33902c4211ad3c5 /archinstall
parent466b892fe87b699ea1e1f90ef50d467cd40a50a9 (diff)
Fixed issue with filename replacing variable.
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):