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@hvornum.se>2021-11-06 00:08:13 +0000
committerGitHub <noreply@github.com>2021-11-06 00:08:13 +0000
commit17fe62c641607cc460e6c6590192ad8de0a21b1a (patch)
treec545eddea5d417166fbc7cd6d6fbe7c4129f5c0b /archinstall/lib/user_interaction.py
parente411ff0abb11cb0e9117555ada9e84d944dd5ea9 (diff)
parent0fed0b3ce544204ef3ef5ba155825e916f358323 (diff)
Merge pull request #678 from archlinux/torxed-fix-175
Adding support for swap on zram
Diffstat (limited to 'archinstall/lib/user_interaction.py')
-rw-r--r--archinstall/lib/user_interaction.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 6b142288..e62d8c6c 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -325,6 +325,10 @@ 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(' ')