index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | codefiles <11915375+codefiles@users.noreply.github.com> | 2023-10-10 04:00:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-10 10:00:22 +0200 |
commit | 5e59acf937c3bb9cfe6a3b7a0a264b9df00239ee (patch) | |
tree | 17bada8edc17539bfcfb3b1412c91692b9d6580b /archinstall/lib/interactions/general_conf.py | |
parent | dc69acd4b43931f9fd3a267d78834d1a38fbb10f (diff) |
-rw-r--r-- | archinstall/lib/interactions/general_conf.py | 15 |
diff --git a/archinstall/lib/interactions/general_conf.py b/archinstall/lib/interactions/general_conf.py index a23426d0..b12a6fb8 100644 --- a/archinstall/lib/interactions/general_conf.py +++ b/archinstall/lib/interactions/general_conf.py @@ -28,14 +28,15 @@ def ask_ntp(preset: bool = True) -> bool: def ask_hostname(preset: str = '') -> str: - while True: - hostname = TextInput( - str(_('Desired hostname for the installation: ')), - preset - ).run().strip() + hostname = TextInput( + str(_('Desired hostname for the installation: ')), + preset + ).run().strip() + + if not hostname: + return preset - if hostname: - return hostname + return hostname def ask_for_a_timezone(preset: Optional[str] = None) -> Optional[str]: |