Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/profiles.py
AgeCommit message (Collapse)Author
2022-05-16Add network-manager-applet to NetworkManager profile (#1120)kpcyrd
* Add network-manager-applet to NetworkManager profile * Converted _configuration.is_desktop_profile() into profile.is_desktop_profile Co-authored-by: Anton Hvornum <anton@hvornum.se>
2022-05-09Introduce ctrl+c and other bug fixes (#1152)Daniel Girtler
* Intergrate ctrl+c * stash * Update * Fix profile reset * flake8 Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-02-28Fix (some) mypy things (#996)Daniel
* Fix mypy things * Fix flake8 Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-02-06Update nationalization (#944)Daniel
* Update nationalization * Update translations * Finish german translation * Fix errors #943 * Add remaining translations * Fix alignment in menu * Update README * Update translations: * Fix flake8 * Update tz function Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-01-07Fixed import error ModuleType (#848)Anton Hvornum
Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2022-01-06Added type annotations to all functions (#845)Anton Hvornum
* Added type annotations for 1/5 of the files. There's bound to be some issues with type miss-match, will sort that out later. * Added type hints for 4/5 of the code * Added type hints for 4.7/5 of the code * Added type hints for 5/5 of the code base * Split the linters into individual files This should help with more clearly show which runner is breaking since they don't share a single common name any longer. Also moved mypy settings into pyproject.toml * Fixed some of the last flake8 issues * Missing parameter * Fixed invalid lookahead types * __future__ had to be at the top * Fixed last flake8 issues
2021-11-05Cleaned up all flake8 issues/warnings. Did some code cleaning as well, ↵Anton Hvornum
mostly how we called things in guided.py but also some SysCommand calls
2021-11-01Fixed flake8 issues in networking, plugins and profiles.Anton Hvornum
2021-06-13Implement is_desktop_profile helper function (#575)Dylan M. Taylor
* Implement is_desktop_profile helper function * Make ask_for_audio_selection use generic_select * Fix default value for audio selection * Leverage list of supported desktops to perform is_desktop_profile check * is_desktop_profile was missing a default return value * Store return value for audio server
2021-06-02Add description to profile listingDylan Taylor
2021-05-17Add missing urllib.error importDylan M. Taylor
Fixes an unresolved reference Add missing urllib.error import
2021-05-15Fix mutable default argumentsDylan Taylor
https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments
2021-05-15Fix E713 test for membership should be 'not in'Dylan Taylor
2021-05-15More formatting fixes to satisfy PEP 8Dylan Taylor
2021-05-15Whitespace changesDylan Taylor
2021-05-15More formatting fixesDylan Taylor
2021-05-15Many more manual changesDylan Taylor
2021-05-14Don't list __init__.py files in profile listDylan M. Taylor
2021-05-14Fixes string index error.Anton Hvornum
2021-05-12some type hint fixes and a bad catch fixadvaithm
2021-04-29Added a postgresql application profile. (#383)Anton Hvornum
* Added a postgres application profile. Also introducing runas to the arch_chroot of the installation, to run commands as emulated users. This is highly WIP at the moment. * Fixing top-level-listing of profiles. As well as testing some postgres installation steps. * Removed dupe functions. * Added safety check in case a comment mentions the top level profile thing. * Patching namespace corruption. * Avoiding runtime collision due to installation not being initiated yet. * Allow for parameterization of filesystem in guided. Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-28Added a mini curses class and generic-multi-select (#362)Anton Hvornum
* Added a mini curses class. It can do some simple tricks to iterate over menu options and indicate which ones are chosen using generic_multi_select(). * Include the default parameter if set. * Modified 'select_kernel()' to use the new multi-select. * Sneaky character got in. * removed some debugging * removed some debugging * Spelling error * Adding error handling and loop support. * Enforce that 'default' is always selected if no other option is selected. * Fixed backspace issues and ghosting. Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-27Moving away from custom log levels, to something that's well defined. (#360)Anton Hvornum
* Moving away from custom log levels, to something that's well defined. * Added backward compability to log() as well. * Added an option to force log messages out on screen even if the level is below the log level threashold. * Added force log messages when wrong notation is used. * Added some more length to the deprecated message * Swapped all log levels to use logging.<level> instead. Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-22merged with masteradvaithm
2021-04-21Re-working top-level-profile lambda to be a parameter to list_profiles() ↵Anton Hvornum
instead. When skipping a profile, None is returned from somewhere and it causes a glitch. So trying to figure out where and what by cleaning up a bit
2021-04-17Merging in master to feature branch.Anton Hvornum
2021-04-12Merge branch 'master' into torxed-v2.2.0Anton Hvornum
2021-04-08Wrong indentation on comment.Anton Hvornum
2021-04-08Disable post-install hooks for nowDylan Taylor
2021-04-08Add filtration on top level profileDylan Taylor
2021-04-08added _post_install hook.advaithm
2021-04-07Remove TODO line - it's functional and tested to work.Dylan M. Taylor
2021-04-07Add i3 selections to desktop fileDylan Taylor
2021-04-07Add filtration on top level profileDylan Taylor
2021-04-07Merging changes from master into feature branch to avoid future conflics.Anton Hvornum
2021-04-06Merge pull request #190 from advaithm/masterAnton Hvornum
post install hook
2021-04-06added _post_install hook.advaithm
2021-04-04Fix misspellingsRafael Fontenelle
2021-03-25New feature: Profile() now supports .packages which returns any defined ↵Anton Hvornum
packages for that specific profile, as well as archinstall.__packages__ contain any packages that Installer() is responsible for. This can be used to quickly gather any required packages and dependencies by archinstall. Not all profiles have it yet, so .packages might return None.
2021-03-21Moved some info logs into debug instead to minimize user splash.Anton Hvornum
2021-03-21Cleaned up after some debugging.Anton Hvornum
2021-03-21Moved the globalization of 'installation' variable. Since Profile() might be ↵Anton Hvornum
created before the installation instance, we need to move the global variable declaration after installation has begun and there's an installation instance.
2021-03-21Storing original namespace of profiles as they were during initation. ↵Anton Hvornum
Namespaces now get reverted back to the original state just before .install() is called. This ensures any temporary namespace changes made during prep-checks etc doesn't stick around when we try to install.
2021-03-21Reverted reset_namespace idea. Didn't turn out as clean as I wanted it to.Anton Hvornum
2021-03-21Enabling load_instructions() to set a temporary namespace, and then ↵Anton Hvornum
reverting it after the instructions are loaded. This is to temporarly override the namespace during import - enabling avoidance of triggering __name__ checks, and at the same time reverting back the namespace automatically to enable .execute() on the script (reusability of classes)
2021-03-21Enabling load_instructions() to set a temporary namespace, and then ↵Anton Hvornum
reverting it after the instructions are loaded. This is to temporarly override the namespace during import - enabling avoidance of triggering __name__ checks, and at the same time reverting back the namespace automatically to enable .execute() on the script (reusability of classes)
2021-03-21Debugging tainted namespace on profile modules.Anton Hvornum
2021-03-21Debugging tainted namespace on profile modules.Anton Hvornum
2021-03-21Debugging tainted namespace on profile modules.Anton Hvornum
2021-03-21Debugging tainted namespace on profile modules.Anton Hvornum