index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-07-08 21:12:29 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-07-08 21:12:29 +0000 |
commit | 6c3be5de959462da8d0dce51a8ed8de819ee5cfc (patch) | |
tree | c88074064f528545d2488337d33902c4211ad3c5 /archinstall | |
parent | 466b892fe87b699ea1e1f90ef50d467cd40a50a9 (diff) |
-rw-r--r-- | archinstall/lib/installer.py | 8 |
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): |