Wrong use of hostname in the set_hostname() function.

This commit is contained in:
Anton Hvornum 2021-04-09 12:43:14 +02:00
parent 59e3408de8
commit 5c8d210f5f
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class Installer():
def set_hostname(self, hostname :str, *args, **kwargs):
with open(f'{self.target}/etc/hostname', 'w') as fh:
fh.write(self.hostname + '\n')
fh.write(hostname + '\n')
def set_locale(self, locale, encoding='UTF-8', *args, **kwargs):
if not len(locale): return True