Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/user_interaction.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-11-01 09:59:32 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-11-01 09:59:32 +0000
commitb4eb8557f5ab4ced63cae061875cf6080f0ab7cd (patch)
tree34c91277dac0de4142ac00b2fa3680f7d58a1c10 /archinstall/lib/user_interaction.py
parentb8808491937a6140c9b4df00b4f27ef0405344a4 (diff)
Adding support for swap on zram
Diffstat (limited to 'archinstall/lib/user_interaction.py')
-rw-r--r--archinstall/lib/user_interaction.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index ba6259b1..d0ed0747 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -326,6 +326,9 @@ class MiniCurses:
return response
+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
+
def ask_for_superuser_account(prompt='Username for required superuser with sudo privileges: ', forced=False):
while 1:
new_user = input(prompt).strip(' ')