index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
-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): |