Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-05-15 17:50:28 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-15 17:50:28 -0400
commit1796bbb91885d8a11837b0d50c4b2093e2314352 (patch)
tree2174e5f92b03d64b9ebfe7c99ea86a73e7bb5d96 /examples
parent0ac13c0958f597156e5e383587bad8a75ac9d870 (diff)
Perform refactoring to PEP 8 naming conventions
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py10
-rw-r--r--examples/minimal.py2
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/guided.py b/examples/guided.py
index e9873ef0..177f4adb 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -3,7 +3,7 @@ import logging
import time
import archinstall
-from archinstall.lib.hardware import hasUEFI
+from archinstall.lib.hardware import has_uefi
if archinstall.arguments.get('help'):
print("See `man archinstall` for help.")
@@ -257,7 +257,7 @@ def perform_installation_steps():
Once that's done, we'll hand over to perform_installation()
"""
mode = archinstall.GPT
- if hasUEFI() is False:
+ if has_uefi() is False:
mode = archinstall.MBR
with archinstall.Filesystem(archinstall.arguments['harddrive'], mode) as fs:
@@ -294,7 +294,7 @@ def perform_installation_steps():
else:
fs.find_partition('/').mount('/mnt')
- if hasUEFI():
+ if has_uefi():
fs.find_partition('/boot').mount('/mnt/boot')
perform_installation('/mnt')
@@ -321,7 +321,7 @@ def perform_installation(mountpoint):
installation.set_hostname(archinstall.arguments['hostname'])
if archinstall.arguments['mirror-region'].get("mirrors", None) is not None:
installation.set_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors in the installation medium
- if archinstall.arguments["bootloader"] == "grub-install" and hasUEFI():
+ if archinstall.arguments["bootloader"] == "grub-install" and has_uefi():
installation.add_additional_packages("grub")
installation.set_keyboard_language(archinstall.arguments['keyboard-language'])
installation.add_bootloader(archinstall.arguments["bootloader"])
@@ -329,7 +329,7 @@ def perform_installation(mountpoint):
# If user selected to copy the current ISO network configuration
# Perform a copy of the config
if archinstall.arguments.get('nic', {}) == 'Copy ISO network configuration to installation':
- installation.copy_ISO_network_config(enable_services=True) # Sources the ISO network configuration to the install medium.
+ installation.copy_iso_network_config(enable_services=True) # Sources the ISO network configuration to the install medium.
elif archinstall.arguments.get('nic', {}).get('NetworkManager', False):
installation.add_additional_packages("networkmanager")
installation.enable_service('NetworkManager.service')
diff --git a/examples/minimal.py b/examples/minimal.py
index 308a5e30..5da6f0c1 100644
--- a/examples/minimal.py
+++ b/examples/minimal.py
@@ -23,7 +23,7 @@ def install_on(mountpoint):
# Optionally enable networking:
if archinstall.arguments.get('network', None):
- installation.copy_ISO_network_config(enable_services=True)
+ installation.copy_iso_network_config(enable_services=True)
installation.add_additional_packages(['nano', 'wget', 'git'])
installation.install_profile('minimal')