Fixed issue with filename replacing variable.

This commit is contained in:
Anton Hvornum 2020-07-08 21:12:29 +00:00
parent 466b892fe8
commit 6c3be5de95
1 changed files with 4 additions and 4 deletions

View File

@ -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):