From 6c3be5de959462da8d0dce51a8ed8de819ee5cfc Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 8 Jul 2020 21:12:29 +0000 Subject: Fixed issue with filename replacing variable. --- archinstall/lib/installer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'archinstall') 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): -- cgit v1.2.3-54-g00ecf