Fixed issue with filename replacing variable.
This commit is contained in:
parent
466b892fe8
commit
6c3be5de95
|
|
@ -53,10 +53,10 @@ class Installer():
|
||||||
fh.write(self.hostname + '\n')
|
fh.write(self.hostname + '\n')
|
||||||
|
|
||||||
def set_locale(self, locale, encoding='UTF-8'):
|
def set_locale(self, locale, encoding='UTF-8'):
|
||||||
with open(f'{self.mountpoint}/etc/locale.gen', 'a') as locale:
|
with open(f'{self.mountpoint}/etc/locale.gen', 'a') as fh:
|
||||||
locale.write(f'{locale} {encoding}\n')
|
fh.write(f'{locale} {encoding}\n')
|
||||||
with open(f'{self.mountpoint}/etc/locale.conf', 'w') as locale:
|
with open(f'{self.mountpoint}/etc/locale.conf', 'w') as fh:
|
||||||
locale.write(f'LANG={locale}\n')
|
fh.write(f'LANG={locale}\n')
|
||||||
sys_command(f'/usr/bin/arch-chroot {self.mountpoint} locale-gen')
|
sys_command(f'/usr/bin/arch-chroot {self.mountpoint} locale-gen')
|
||||||
|
|
||||||
def minimal_installation(self):
|
def minimal_installation(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue