We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 466b892 commit 6c3be5dCopy full SHA for 6c3be5d
1 file changed
archinstall/lib/installer.py
@@ -53,10 +53,10 @@ def set_hostname(self, hostname=None):
53
fh.write(self.hostname + '\n')
54
55
def set_locale(self, locale, encoding='UTF-8'):
56
- with open(f'{self.mountpoint}/etc/locale.gen', 'a') as locale:
57
- locale.write(f'{locale} {encoding}\n')
58
- with open(f'{self.mountpoint}/etc/locale.conf', 'w') as locale:
59
- 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')
60
sys_command(f'/usr/bin/arch-chroot {self.mountpoint} locale-gen')
61
62
def minimal_installation(self):
0 commit comments