Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorZach Osman <zosman@gmu.edu>2021-04-09 22:56:54 -0400
committerZach Osman <zosman@gmu.edu>2021-04-09 22:56:54 -0400
commitaee04406210c2f6b1846c8d6875d3903e7df8f35 (patch)
tree8735271b881430085c2a64ca4aa78d5cae4bee62 /archinstall/lib
parent0888ca592aab78e629ac5bdcdf60f3e059155ba7 (diff)
parent69a873084593c32b2766315c02a1ddbcdac731d9 (diff)
Merge branch 'master' into enhancement-systemd-service-wrapper
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/output.py2
-rw-r--r--archinstall/lib/user_interaction.py5
2 files changed, 3 insertions, 4 deletions
diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py
index dfc6959d..6b184b4b 100644
--- a/archinstall/lib/output.py
+++ b/archinstall/lib/output.py
@@ -88,7 +88,7 @@ def log(*args, **kwargs):
# Attempt to colorize the output if supported
# Insert default colors and override with **kwargs
if supports_color():
- kwargs = {'bg' : 'black', 'fg': 'white', **kwargs}
+ kwargs = {'fg': 'white', **kwargs}
string = stylize_output(string, **kwargs)
# If a logfile is defined in storage,
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 8cdbbe8c..e7243a25 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -22,7 +22,7 @@ def get_password(prompt="Enter a password: "):
while (passwd := getpass.getpass(prompt)):
passwd_verification = getpass.getpass(prompt='And one more time for verification: ')
if passwd != passwd_verification:
- log(' * Passwords did not match * ', bg='black', fg='red')
+ log(' * Passwords did not match * ', fg='red')
continue
if len(passwd.strip()) <= 0:
@@ -54,7 +54,7 @@ def ask_for_superuser_account(prompt='Create a required super-user with sudo pri
if not new_user and forced:
# TODO: make this text more generic?
# It's only used to create the first sudo user when root is disabled in guided.py
- log(' * Since root is disabled, you need to create a least one (super) user!', bg='black', fg='red')
+ log(' * Since root is disabled, you need to create a least one (super) user!', fg='red')
continue
elif not new_user and not forced:
raise UserError("No superuser was created.")
@@ -108,7 +108,6 @@ def ask_to_configure_network():
log(
"You need to enter a valid IP in IP-config mode.",
level=LOG_LEVELS.Warning,
- bg='black',
fg='red'
)