brurmonemt
e4b2894db5
fix ValueError exception when no disks are detected in the disk menu ( #4598 )
...
* Fix ValueError exception when no disks are detected in the disk menu
in lib/disk/disk_menu.py, the menu items are created using info from a list called "devices" (device_handler.devices). when no block devices are detected, the list is empty, creating zero MenuItems, and causing the following ValueError:
ValueError: Menu must have at least one item
this change checks if the length of the list is shorter than 1 (empty list) before constructing the menu. if the list is empty, the user will be notified that no disks were detected. otherwise, the menu is created and behaves as normal
* Fixed ruff formatting issue
* Fixed ruff formatting issue
---------
Co-authored-by: Anton Hvornum <torxed@archlinux.org>
2026-06-28 21:19:42 +02:00
Daniel Girtler
ac4bc442de
Refactor logging and formatting logic ( #4542 )
...
* Refactor logging and formatting
* Refactor logging and formatting
* Refactor logging and formatting
* Updaet
2026-05-19 17:48:03 +02:00
Daniel Girtler
b18cc57216
Pull `ui` module one level up ( #4515 )
...
* Pull the UI module one level up
* Update
2026-05-03 23:54:42 +02:00
codefiles
9fdd7eb12e
Refactor EncryptionType ( #4438 )
...
* Use UPPER_CASE for EncryptionType
* Use StrEnum for EncryptionType
2026-04-17 10:08:23 +10:00
codefiles
7ea171369a
Refactor PartitionType ( #4432 )
...
* Use UPPER_CASE for PartitionType
* Use StrEnum for PartitionType
2026-04-16 14:05:08 +10:00
codefiles
2b27e565ae
Refactor ModificationStatus ( #4422 )
...
* Use UPPER_CASE for ModificationStatus member names
* Use StrEnum for ModificationStatus
* Replace LvmVolumeStatus with ModificationStatus
2026-04-14 15:37:14 +10:00
codefiles
335a7b792c
Refactor FilesystemType ( #4417 )
...
* Use UPPER_CASE for FilesystemType member names
* Use StrEnum for FilesystemType
* Use FilesystemType member values
2026-04-13 18:41:59 +10:00
Daniel Girtler
e763c1109c
Refactor interactive module ( #4315 )
...
* Refactor interactive module
* Refactor interactive module
* Update
2026-03-21 18:35:44 +11:00
Daniel Girtler
b186fb3f64
Async menu ( #4308 )
...
* Move to async TUI
* Update
* Update
2026-03-16 10:39:36 +11:00
Daniel Girtler
e4faba2de0
Convert imports to absolute imports ( #4196 )
...
* Enable ruff absolute import check
* Convert all relative imports to absolute
* Update
* Update
2026-02-26 20:17:48 +11:00
Daniel Girtler
0aca992ac5
Migrate UI to textual ( #3997 )
...
* Footer textual
* Linting
* Revert pre-commit for pylint
* Add missing textual
* Reinstate example
* Linting
2026-01-19 07:01:40 +11:00
codefiles
43509d8ce1
Use instance method for type_to_text ( #4113 )
2026-01-11 11:29:39 +11:00
Gabriel A Hernandez
7398e2785d
Typo and grammar fixes ( #3970 )
...
* Menu now filters and sorts using priority, improving UX.
* Refactor: improve logic, removed redundancy
* Refactor: improve logic, removed redundancy
* Typo and grammar fixes
* Typo and grammar fixes
* Fix comment formatting in .gitlab-ci.yml
* Fix comment
* Removed code from separate pull request
* Update menu_item.py
* removed white space
* Remove unnecessary blank lines in menu_item.py
>:(
2025-12-06 20:06:07 +11:00
Daniel Girtler
d342c50aec
Remove beta label from LVM ( #3737 )
2025-08-27 10:28:45 +02:00
Daniel Girtler
e4e30b31d4
Disable btrfs snapshots when no subvolumes defined ( #3736 )
2025-08-27 10:28:17 +02:00
Daniel Girtler
96aaf5b6ac
Rename module device_model -> device ( #3639 )
2025-07-15 09:29:58 +02:00
Haouari haitam Kouider
b3b00aa00f
Add interface to change LUKS iteration time ( #3634 )
...
* Added User Interface to change iteration time for LUKS encryption
* removing unneessary try catch and imports
* used the same constant in luks.py file
* fixed issue with error firing in default value
* fixed ruf preview warnings
* preview even if its default value. (iter_time)
* check encryption type is not non before showing iter_time
* using _real_input with input_vp instead of _current_text
* proper check for enc_type
* added Interation time to outer menu preview
* removed (ms) from title. so that we don't need to translate "Iteration time" and "iteration time (ms)".
* a comment slipped in. this was not supposed to be in this pull
* fixed comparison str with EncryptionType
2025-06-30 11:11:24 +10:00
Daniel Girtler
063b9643b4
Add new version indicator in the title of the main menu ( #3587 )
...
* Add new version indicator in the title of the main menu
* Update
2025-06-12 07:14:30 +10:00
correctmost
c2f4d92fd9
Enable unreachable code checks in lib/ with mypy ( #3521 )
2025-05-28 20:47:40 +10:00
Daniel Girtler
8c12d15a41
Fix disk encryption emnu ( #3506 )
2025-05-26 21:21:30 +10:00
Daniel Girtler
cdb1debe2e
Move disk encryption into disk config menu ( #3502 )
2025-05-25 21:23:37 +10:00
Daniel Girtler
5a54902935
Add support for Btrfs snapshots ( #3500 )
...
* Add btrfs snapshot support
* Update
* Update
* Update
2025-05-25 17:22:41 +10:00
Daniel Girtler
d3f32f308c
Update ruff formatter ( #3496 )
...
* Update ruff formatter
* Update
2025-05-24 07:58:42 +00:00
Daniel Girtler
57bd2451e9
Simplify translating of strings ( #3479 )
...
* Simplify translation fucntion
* Simplify translation fucntion
2025-05-19 22:33:02 +10:00
Daniel Girtler
c67ac97f18
Ruff formatting ( #3459 )
...
* Update
* Update
2025-05-15 14:26:41 +02:00
correctmost
0de90bd55b
Specify menu return types using generics instead of Any ( #3400 )
2025-04-27 13:01:17 +10:00
correctmost
6a90760e67
Clean up most no-implicit-reexport warnings from mypy ( #3233 )
...
This makes it easier to run mypy --strict from the command line
and should hopefully make it easier to clean up import cycles in
future commits.
2025-03-09 19:50:56 +11:00
codefiles
201968cf2e
Show device wipe status in Info for Partitioning ( #3193 )
2025-02-23 10:20:37 +11:00
Daniel Girtler
b57f7f91cf
Integrate new arguments data structure ( #3167 )
...
* Integrate new args dataclass
* Integrate args
* Update
* Update
* Update
* Update
2025-02-20 07:35:59 +11:00
codefiles
3409f84e79
Use list comprehension ( #3105 )
2025-01-12 11:30:27 +11:00
correctmost
af043afa88
Enable the unnecessary-lambda pylint rule and fix warnings ( #2983 )
2024-12-01 17:44:39 +11:00
correctmost
ee2ed3fe54
Start using typing.override to annotate overridden methods and properties ( #2934 )
2024-11-25 19:51:16 +11:00
correctmost
8d807c08ee
Use precise type hints for most DeferredTranslation references ( #2929 )
...
The remaining "_: Any" instances will require accompanying code
changes.
2024-11-25 18:49:22 +11:00
correctmost
955b2cfc3e
Sort and format imports in lib/disk/ ( #2875 )
2024-11-18 23:29:56 +01:00
correctmost
25172bd0f8
Start replacing Optional with union syntax in lib/ ( #2837 )
2024-11-17 09:03:01 +11:00
correctmost
c87c723549
Remove most deprecated typing.Dict usage ( #2813 )
2024-11-16 11:57:46 +11:00
correctmost
dff101e279
Remove most deprecated typing.List usage ( #2810 )
2024-11-16 10:13:51 +11:00
Daniel Girtler
88b91ae201
Integrate new curses menu ( #2663 )
...
* Edit text menu
* Fix alignment
* Scroll functionality
* Fix flake8
* Migrate locales menu
* Fix language translation
* Fix interrupt
* Fix flake8
* Edit mode preset
* Convert print to tui prints
* Fix mypy
* Fix cycling through long menu
* Fix profile view
* Fix scrolling
* Fix scrolling
* Fix mypy
* Fix swiss script
* Display asterisk for passwords
* Corrected a variable usage in the local mirror parsing
* Made sure that curses menu selection on mirrors use url object from mirror.url instead of the class instance
* Fixed mypy type on mirror list
---------
Co-authored-by: Torxed <torxed@archlinux.org>
2024-11-15 08:23:22 +01:00
correctmost
63b4184f70
Fix most of the mypy errors in archinstall/lib/disk/ ( #2639 )
2024-08-28 05:40:51 +10:00
Daniel Girtler
9c5a66b145
Add beta label to LVM support ( #2531 )
2024-06-08 09:18:19 +02:00
Daniel Girtler
b470b16ec9
LVM support ( #2104 )
...
* Submenu for disk configuration
* Update
* Add LVM manual config
* PV selection
* LVM volume menu
* Update
* Fix mypy
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update LVM
* Update
* Update
* Btrfs support
* Refactor
* LVM on Luks
* Luks on LVM
* Update
* LVM on Luks
* Update
* Update
* mypy
* Update
* Fix bug with LuksOnLvm and Btrfs
* Update
* Update
* Info -> Debug output
2024-04-15 18:49:00 +10:00