Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/menu
AgeCommit message (Collapse)Author
2022-05-29Fix subvol selection (#1277)Daniel Girtler
* Fix subvolume selection * Update Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-05-29Fix typos (#1265)Kian-Meng Ang
2022-05-29Don't offer to encrypt /boot, exlude it from the set available to the user ↵Dylan M. Taylor
(#1273) * WIP: Don't offer to encrypt /boot * This filter might work * Ref: https://github.com/archlinux/archinstall/blob/master/archinstall/lib/storage.py * Use list comprehension * I wonder if I can use this filter_ argument that exists already * flake8 fix * Show index
2022-05-28Fixes additional encryption prompt even tho partitions was marked for ↵Anton Hvornum
encryption (#1264) Corrected the check for partitions marked with `encrypt: true`
2022-05-26Rework user management (#1220)Daniel Girtler
* Rework users * Update user installation * Fix config serialization * Update * Update schemas and documentation * Update * Fix flake8 * Make users mypy compatible * Fix minor copy Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com> Co-authored-by: Anton Hvornum <anton@hvornum.se>
2022-05-18Enhance view (#1210)Daniel Girtler
* Add preview for menu entries * Fix mypy * Update * Update * Fix mypy Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-05-18Added a HSM menu entry (#1196)Anton Hvornum
* Added a HSM menu entry, but also a safety check to make sure a FIDO device is connected * flake8 complaints * Adding FIDO lookup using cryptenroll listing * Added systemd-cryptenroll --fido2-device=list * Removed old _select_hsm call * Fixed flake8 complaints * Added support for locking and unlocking with a HSM * Removed hardcoded paths in favor of PR merge * Removed hardcoded paths in favor of PR merge * Fixed mypy complaint * Flake8 issue * Added sd-encrypt for HSM and revert back to encrypt when HSM is not used (stability reason) * Added /etc/vconsole.conf and tweaked fido2_enroll() to use the proper paths * Spelling error * Using UUID instead of PARTUUID when using HSM. I can't figure out how to get sd-encrypt to use PARTUUID instead. Added a Partition().part_uuid function. Actually renamed .uuid to .part_uuid and created a .uuid instead. * Adding missing package libfido2 and removed tpm2-device=auto as it overrides everything and forces password prompt to be used over FIDO2, no matter the order of the options. * Added some notes to clarify some choices. * Had to move libfido2 package install to later in the chain, as there's not even a base during mounting :P
2022-05-17Fix since consistency issues with 1195 (#1206)Dylan M. Taylor
2022-05-17Fix padding calculation (#1205)Daniel Girtler
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-05-17Reworking select_encrypted_partitions() to use the new Menu system, (#1201)Anton Hvornum
* Reworking select_encrypted_partitions() to use the new Menu system, and allow granularity. * Listing partitions and enabling a index selection. Also when selecting 'delete all partitions' wipe=True will get set on the blockdevice now. Otherwise the new partitions won't be able to be created without deleting them first. * flake8 fix * Removed old select_encrypted_partitions()
2022-05-16Fixed base.pot (#1191)Alexmelman88
* Update list_manager.py * Update base.pot * Update base.po * Update base.pot * Update base.pot * Update base.po * Add files via upload
2022-05-16Fix lengthy translations in Main Menu (Important) (#1195)Reza
* Fix lengthy translations in Main Menu * rename 'Additional repositories' to 'Optional repositories' * rename 'Drives' to 'Drive(s)' * rename 'Choose keyboard layout' to 'Select keyboard layout'
2022-05-10Updated ru locale and minor fixes (#1157)Alexmelman88
* Add files via upload * Add files via upload * Update global_menu.py
2022-05-10Fixes #1048 and translation updates (#1156)Daniel Girtler
* Remove comments from translation files * Add german translations Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
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-05-08Fix alignment (#1139)Daniel Girtler
* Fix alignment * Update Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-05-06Fix minor issues (#1132)Daniel Girtler
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-05-06Fix menu alignment (#1102)Daniel Girtler
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-05-05Fix 1117 (#1126)Daniel Girtler
* Fix 1117 * Update * flake8 Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-05-02Fix 1091 and other minor fixes (#1103)Daniel Girtler
* Fix 1091 * Update * flake8 * Only display btrfs options if there is a filesystem * Fix 1118 Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-05-02Fix #1106 (#1119)Daniel Girtler
* Fix #1106 * flake8 * flake8 Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-04-25Bumped up default timout, as 5 seconds is not enough for some platforms.Anton Hvornum
2022-04-25Require superuser or root password fixed. (#1082)Anton Hvornum
2022-04-25Set a 'default' argument for audio and removed it as a requirement to ↵Anton Hvornum
continue. (#1081)
2022-04-25We make the last action available beyond the run loop, so we can check why ↵Werner Llácer
run was exited (#1066)
2022-04-22Flexible order of menu options (#1078)Daniel
* Allow custom ordering of the menu entries * Update Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-04-22Support for multiple network interfaces (#1052)Daniel
* Support for multiple network interfaces * Fix mypy * Fix flake8 Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-04-12Downstream new simple menu feature (#1055)Daniel
* Downstream new simple menu feature * Fix flake8 * Update * Fix flake8 Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-03-29Fixed flake8Anton Hvornum
2022-03-29Correct exit when no disk is selected and we don't wish to continue (#1049)Werner Llácer
2022-03-28Removed GlobalMenu from selection_menu.py as it's moved to it's own file.Anton Hvornum
2022-03-28moved GlobalMenu into lib/menu/global_menu.py insteadAnton Hvornum
2022-03-28Fixed an import of not yet loaded moduleAnton Hvornum
2022-03-28Added missing imports (#1046)Anton Hvornum
2022-03-28Fix some mypy things (#1023)Daniel
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com> Co-authored-by: Anton Hvornum <anton@hvornum.se>
2022-03-28Subvolume User Interface (#1032)Werner Llácer
* Deflate the user interactions file * Fix flake8 * GlobalMenu split from selection_menu.py * Upgrades to ListManager: Can now show an empty list if there is no null action. More information to the user at the header * Put only_hd.py and swiss.py to use new config printing mechanism Solved a couple of bugs at ListManager adding a str and a DeferredTranslation ManageUser was missing an self argument in _check ... * Create list and menus to manage subvolumes in btrfs partitions Needed to modify manage_new_and_existing_partitions Added a new parameter filter to select_partition, to allow filtering there * Update internationalization strings Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com> Co-authored-by: Anton Hvornum <anton@hvornum.se>
2022-03-28Issues with Network Management and user management in menu (#1036)Werner Llácer
* A problem with default values treatment at superusers (and users) on the main menu * Solving issues when changing the selection of nic, ask_to_configure_network failed in several places. Solved, temporarily with the creation of __getitem__ and get methods at NetworkManager * Accept old style definitions for nic * flake8 complains * log string corrected (issue 1039) * Correct exit when no disk is selected and we don't wish to continue
2022-03-10Additions to Listmgr et alia (#1028)Werner Llácer
* Permit multiple default actions as a list * Define headers for list at ListManager and Menu * small corrections for default values * Make subvolume info work. The real marker that signifies that a mounted subvolume exist is the bracket notation nor the at sign
2022-03-01A couple of corrections for the user interface (#1017)Werner Llácer
* Preview size is now an argument for GeneralMenu Parameter missing in call to save_config * Update selection_menu.py Co-authored-by: Anton Hvornum <anton.feeds+github@gmail.com>
2022-02-28User Management via lists (#1008)Werner Llácer
* Fix user/superuser config * Fix flake8 * Remove timezone check since we have a default value now * Remove unused * add new widget ListManager * flake8 complains * Null_action appears now in the main list (to simplify additions to the list) Formatted data are now at the from to the actions submenu * Manage users thru a ListManagers * Define a default action in the menu, potentially independent of a null_action Both default and null actions don't have to be part of the element's action list Some cleanup Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com> Co-authored-by: Anton Hvornum <anton.feeds@gmail.com> Co-authored-by: Anton Hvornum <anton@hvornum.se>
2022-02-28Solves issue 1013 (#1016)Werner Llácer
2022-02-28Menu option save config (#1009)Daniel
* Add new save config menu option * Update * Fixed issue with merging * Fixed merge issue (I think) Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com> Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2022-02-28add new widget ListManager (#1005)Werner Llácer
* add new widget ListManager * flake8 complains * Null_action appears now in the main list (to simplify additions to the list) Formatted data are now at the from to the actions submenu * Define a default action in the menu, potentially independent of a null_action Both default and null actions don't have to be part of the element's action list Some cleanup
2022-02-28Fix (some) mypy things (#996)Daniel
* Fix mypy things * Fix flake8 Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-02-28Rework the user/superuser configuration (#993)Daniel
* Fix user/superuser config * Fix flake8 * Remove timezone check since we have a default value now * Remove unused Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com> Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2022-02-28enhacements to the menu infraestructure (#978)Werner Llácer
* Correct definition of btrfs standard layout * Solve issue #936 * make ask_for_a_timezone as synonym to ask_timezone * Some refining in GeneralMenu secret is now a general function * Revert "Some refining in GeneralMenu" This reverts commit e6e131cb19795e0ddc169e897ae4df57a1c7f9fb. * Activate load of preset values in GeneralMenu Changed all select_functions definitions to the need of passing the preset value Corrected problems at ask_to_configure_network, and management of preset values added * minor glitches in menu processing, plus flake8 complains * Changes to ask_to_configure_network following @svartkanin code * select_language adapted to preset value. changes to the infraestructure to solve bugs * functions adapted for preset values * select_mirror_regions * select_locale_lang * select_locale_enc * ask_for_swap * Updated to preset values * ask_for_bootloader Won't use it * set_root_password() * Updated to preset values * ask_for_audio_selection * select_kernel * ask_for_a_timezone * Updated to use preset values * select_ntp * ask_ntp * ask_for_swap flake8 complains * Adapted to preset values * ask_additional_packages_to_install (from svartkanin) * ask_to_configure_network (adapted from svartkanin version) * Updated to preset values * ask_hostname * select_additional_repositories * bug in nic conversion _select_harddrives adapted to preset_menu
2022-02-15Fix #966 - DeferredTranslation errors (#976)Daniel
* Fix #966 * Add types to parameters * Update network configuration * Backwards compability for nic config * Update Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-02-13Switch from flags to an 'additional repository' menu (#977)Dylan M. Taylor
* Add multilib flag to enable this repository and enable multi-lib testing if testing flag is also passed * Fix comments * Attempt to force pacman to use the config file from the host * Make sure the pacman configuration is copied to target * flake8 * Call enable on additional-repositories * Add method to select additional repositories * Add menu option for additional repos * This is a bit cleaner than having it all on one line * Add import * Use [] as default instead of None * Use empty array for default option here * Try this to ensure a valid array is returned on skipping * Add additional-repositories to schema * Missed changing this comment earlier
2022-02-13Set the default timezone to UTC in the menu (#981)Dylan M. Taylor
It's already the default, this just keeps the user from needing to make the selection
2022-02-13Use archlinux as the default hostname (#979)Dylan M. Taylor