Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDylan M. Taylor <dylan@dylanmtaylor.com>2021-04-06 18:04:03 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-04-06 22:19:41 -0400
commitd9984550b6ad4f4e7d659adb32cef541e85d69d9 (patch)
treefff569422d7cd3c45bc75887eb13f7228ccca313 /examples
parent9436ca780586334ad7661a0c606eb95a8353bab3 (diff)
Move choice into guided installation instead of DEs
Arch wiki says packages should enable the user services automatically
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 81cc2991..cd45bef5 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -182,6 +182,10 @@ def ask_user_questions():
)
exit(1)
+ # Ask about audio server selection (this right now just asks for pipewire and defaults to pulseaudio otherwise)
+ if not archinstall.arguments.get('audio', None):
+ archinstall.arguments['audio'] = archinstall.ask_for_audio_selection()
+
# Additional packages (with some light weight error handling for invalid package names)
if not archinstall.arguments.get('packages', None):
archinstall.arguments['packages'] = [package for package in input('Write additional packages to install (space separated, leave blank to skip): ').split(' ') if len(package)]
@@ -329,7 +333,11 @@ def perform_installation(device, boot_partition, language, mirrors):
installation.enable_service('systemd-networkd')
installation.enable_service('systemd-resolved')
-
+ print('This audio server will be used: ' + archinstall.arguments.get('audio', None))
+ if archinstall.arguments.get('audio', None) == 'pipewire':
+ print('Installing pipewire ...')
+ installation.install_profile('pipewire')
+
if archinstall.arguments.get('packages', None) and archinstall.arguments.get('packages', None)[0] != '':
installation.add_additional_packages(archinstall.arguments.get('packages', None))