index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Daniel <blackrabbit256@gmail.com> | 2022-02-06 21:30:26 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-06 11:30:26 +0100 |
commit | 9fb8d3164ce07e6cd08fe60f2e6f1203ccb8991a (patch) | |
tree | 8e525e9d65ab48da74602bec20e68e5cae51d754 /examples | |
parent | ec73bdab4cf124aba16e10293e5e75a3bc89afb8 (diff) |
-rw-r--r-- | examples/guided.py | 9 | ||||
-rw-r--r-- | examples/only_hd.py | 2 |
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']) diff --git a/examples/only_hd.py b/examples/only_hd.py index 7195d810..835c4292 100644 --- a/examples/only_hd.py +++ b/examples/only_hd.py @@ -24,7 +24,7 @@ def ask_harddrives(): # Get disk encryption password (or skip if blank) if archinstall.arguments.get('!encryption-password', None) is None: - if passwd := archinstall.get_password(prompt='Enter disk encryption password (leave blank for no encryption): '): + if passwd := archinstall.get_password(prompt=str(_('Enter disk encryption password (leave blank for no encryption): '))): archinstall.arguments['!encryption-password'] = passwd if archinstall.arguments.get('!encryption-password', None): |