Fixed set_hostname() default.
This commit is contained in:
parent
276414079b
commit
59e3408de8
|
|
@ -144,8 +144,7 @@ class Installer():
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def set_hostname(self, hostname=None, *args, **kwargs):
|
def set_hostname(self, hostname :str, *args, **kwargs):
|
||||||
if not hostname: hostname = self.hostname
|
|
||||||
with open(f'{self.target}/etc/hostname', 'w') as fh:
|
with open(f'{self.target}/etc/hostname', 'w') as fh:
|
||||||
fh.write(self.hostname + '\n')
|
fh.write(self.hostname + '\n')
|
||||||
|
|
||||||
|
|
@ -290,7 +289,7 @@ class Installer():
|
||||||
#os.remove(f'{self.target}/etc/localtime')
|
#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(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')
|
#sys_command('/usr/bin/arch-chroot /mnt hwclock --hctosys --localtime')
|
||||||
self.set_hostname()
|
self.set_hostname('archinstall')
|
||||||
self.set_locale('en_US')
|
self.set_locale('en_US')
|
||||||
|
|
||||||
# TODO: Use python functions for this
|
# TODO: Use python functions for this
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue