diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 5e7f99c118..724cd93f37 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -821,7 +821,7 @@ def minimal_installation( testing: bool = False, multilib: bool = False, mkinitcpio: bool = True, - hostname: str = 'archinstall', + hostname: str | None = None, locale_config: LocaleConfiguration = LocaleConfiguration.default() ): if self._disk_config.lvm_config: @@ -874,7 +874,9 @@ def minimal_installation( # 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(hostname) + if hostname: + self.set_hostname(hostname) + self.set_locale(locale_config) self.set_keyboard_language(locale_config.kb_layout) diff --git a/archinstall/scripts/guided.py b/archinstall/scripts/guided.py index 6a51d9e1c6..9737e5873f 100644 --- a/archinstall/scripts/guided.py +++ b/archinstall/scripts/guided.py @@ -73,7 +73,7 @@ def perform_installation(mountpoint: Path) -> None: testing=enable_testing, multilib=enable_multilib, mkinitcpio=run_mkinitcpio, - hostname=archinstall.arguments.get('hostname', 'archlinux'), + hostname=archinstall.arguments.get('hostname'), locale_config=locale_config )