Misspelled variable name
This commit is contained in:
parent
f1422d955f
commit
a5730dec85
|
|
@ -328,6 +328,7 @@ class MiniCurses:
|
||||||
def ask_for_swap(prompt='Would you like to use swap on zram? (Y/n): ', forced=False):
|
def ask_for_swap(prompt='Would you like to use swap on zram? (Y/n): ', forced=False):
|
||||||
return True if input(prompt).strip(' ').lower() not in ('n', 'no') else False
|
return True if input(prompt).strip(' ').lower() not in ('n', 'no') else False
|
||||||
|
|
||||||
|
|
||||||
def ask_for_superuser_account(prompt='Username for required superuser with sudo privileges: ', forced=False):
|
def ask_for_superuser_account(prompt='Username for required superuser with sudo privileges: ', forced=False):
|
||||||
while 1:
|
while 1:
|
||||||
new_user = input(prompt).strip(' ')
|
new_user = input(prompt).strip(' ')
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@ def ask_user_questions():
|
||||||
archinstall.arguments["bootloader"] = archinstall.ask_for_bootloader()
|
archinstall.arguments["bootloader"] = archinstall.ask_for_bootloader()
|
||||||
|
|
||||||
if not archinstall.arguments.get('swap', None):
|
if not archinstall.arguments.get('swap', None):
|
||||||
archinstall.archinstall['swap'] = archinstall.ask_for_swap()
|
archinstall.arguments['swap'] = archinstall.ask_for_swap()
|
||||||
|
|
||||||
# Get the hostname for the machine
|
# Get the hostname for the machine
|
||||||
if not archinstall.arguments.get('hostname', None):
|
if not archinstall.arguments.get('hostname', None):
|
||||||
|
|
@ -271,7 +271,7 @@ def perform_installation(mountpoint):
|
||||||
if archinstall.arguments["bootloader"] == "grub-install" and archinstall.has_uefi():
|
if archinstall.arguments["bootloader"] == "grub-install" and archinstall.has_uefi():
|
||||||
installation.add_additional_packages("grub")
|
installation.add_additional_packages("grub")
|
||||||
installation.add_bootloader(archinstall.arguments["bootloader"])
|
installation.add_bootloader(archinstall.arguments["bootloader"])
|
||||||
if archinstall.archinstall['swap']:
|
if archinstall.arguments['swap']:
|
||||||
installation.setup_swap('zram')
|
installation.setup_swap('zram')
|
||||||
|
|
||||||
# If user selected to copy the current ISO network configuration
|
# If user selected to copy the current ISO network configuration
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue