Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/guided.py b/examples/guided.py
index a775da84..1a00a295 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -8,7 +8,7 @@ if archinstall.arguments.get('help'):
print("See `man archinstall` for help.")
exit(0)
if os.getuid() != 0:
- print("Archinstall requires root privileges to run. See --help for more.")
+ print(_("Archinstall requires root privileges to run. See --help for more."))
exit(1)
# Log various information about hardware before starting the installation. This might assist in troubleshooting
@@ -97,7 +97,7 @@ def perform_filesystem_operations():
"""
if archinstall.arguments.get('harddrives', None):
- print(f" ! Formatting {archinstall.arguments['harddrives']} in ", end='')
+ print(_(f" ! Formatting {archinstall.arguments['harddrives']} in "), end='')
archinstall.do_countdown()
"""
@@ -113,6 +113,7 @@ def perform_filesystem_operations():
with archinstall.Filesystem(drive, mode) as fs:
fs.load_layout(archinstall.arguments['disk_layouts'][drive.path])
+
def perform_installation(mountpoint):
"""
Performs the installation steps on a block device.
@@ -138,11 +139,11 @@ def perform_installation(mountpoint):
installation.log('Waiting for automatic mirror selection (reflector) to complete.', level=logging.INFO)
while archinstall.service_state('reflector') not in ('dead', 'failed'):
time.sleep(1)
-
+
# Set mirrors used by pacstrap (outside of installation)
if archinstall.arguments.get('mirror-region', None):
archinstall.use_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors for the live medium
-
+
if installation.minimal_installation():
installation.set_locale(archinstall.arguments['sys-language'], archinstall.arguments['sys-encoding'].upper())
installation.set_hostname(archinstall.arguments['hostname'])