Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-09 12:28:52 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-09 12:28:52 +0200
commit59e3408de838206bad24fa0d8ca34b47f71e17aa (patch)
tree9b0b58f819988e9fb2366c8fb8857986d8c4d5f2 /archinstall
parent276414079bff0249d1d788eb64534bbbe66ad8a4 (diff)
Fixed set_hostname() default.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/installer.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 593a812d..d242f1ee 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -144,8 +144,7 @@ class Installer():
return True
- def set_hostname(self, hostname=None, *args, **kwargs):
- if not hostname: hostname = self.hostname
+ def set_hostname(self, hostname :str, *args, **kwargs):
with open(f'{self.target}/etc/hostname', 'w') as fh:
fh.write(self.hostname + '\n')
@@ -290,7 +289,7 @@ class Installer():
#os.remove(f'{self.target}/etc/localtime')
#sys_command(f'/usr/bin/arch-chroot {self.target} ln -s /usr/share/zoneinfo/{localtime} /etc/localtime')
#sys_command('/usr/bin/arch-chroot /mnt hwclock --hctosys --localtime')
- self.set_hostname()
+ self.set_hostname('archinstall')
self.set_locale('en_US')
# TODO: Use python functions for this