Commit Graph

2127 Commits

Author SHA1 Message Date
codefiles 700294f19a
disk: validate first partition start (#3096) 2025-01-10 20:12:47 +11:00
codefiles c081f77d57
pacman/repo: use StrEnum (#3088) 2025-01-08 12:13:11 +11:00
correctmost 10a12dc855
Fix mutable-class-default ruff warnings (#3087) 2025-01-08 10:23:07 +11:00
codefiles 6398f6852d
audio: use StrEnum (#3084) 2025-01-08 07:45:19 +11:00
correctmost 40210f8733
Fix used-dummy-variable ruff warnings (#3083) 2025-01-08 07:44:48 +11:00
codefiles 9163e8c84c
disk: rework manual partitioning (#3071)
* disk: rework manual partitioning

* disk: fix end alignment

* disk: validate config

* test: fix disk config partition overlap
2025-01-08 07:44:03 +11:00
correctmost e712144e5d
Fix falsy-dict-get-fallback ruff warnings (#3077) 2025-01-08 07:38:40 +11:00
codefiles fd91cbaac1
pacman/repo: update enum members to uppercase (#3076) 2025-01-08 07:37:43 +11:00
codefiles fa515dfdc6
general: remove superfluous callbacks variable (#3075) 2025-01-08 07:36:12 +11:00
codefiles 6dab4650fa
audio: capitalize enums (#3067) 2025-01-03 15:24:10 +11:00
codefiles 547ce8033d
audio: remove incorrect use of dataclass (#3058) 2025-01-03 13:44:25 +11:00
codefiles 18ef7fd469
Use Path.chmod() (#3051) 2025-01-03 13:41:41 +11:00
codefiles 459b84b6fe
Rework mount point argument (#3041) 2024-12-23 11:04:16 +11:00
codefiles d5c5b60d5c
Rework profiles path (#3040) 2024-12-23 09:08:48 +11:00
codefiles 5f8cdcb39b
disk: change from_partition() parameters (#3039) 2024-12-23 09:08:02 +11:00
codefiles 24ff132f93
general: remove unspecified exception handling (#3035) 2024-12-22 10:21:56 +11:00
codefiles c978c841de
disk: move ENC_IDENTIFIER (#3034) 2024-12-22 10:21:21 +11:00
codefiles 9b5fd6bad5
mirrors: use pydantic model_validate_json() (#3033) 2024-12-20 17:26:45 +11:00
codefiles 367c8d781c
general: rework environment_vars (#3032) 2024-12-20 17:26:11 +11:00
codefiles f685849b8d
luks: remove superfluous _mapper_dev (#3031) 2024-12-20 17:25:12 +11:00
codefiles ae51af67a3
Remove disk retries and timeouts (#3025) 2024-12-19 17:49:44 +11:00
Mohamed E d2ef961b32
[Feat] Wayfire support (#3020)
* add profile

* fix pylint
2024-12-18 07:04:48 +11:00
lazysixoeight 5288e246ec
Specified GNOME as an acronym (#3023) 2024-12-16 20:49:42 +11:00
Daniel Girtler 1ff04c6df0
Use ctrl+h for help menu trigger (#2996) 2024-12-12 09:43:54 +01:00
codefiles 4dccd54cbd
Replace commonprefix() with commonpath() (#3016) 2024-12-09 13:25:08 +11:00
codefiles 3716df9bb7
Fix pre-mounted Btrfs subvolumes root detection (#3014) 2024-12-09 10:38:16 +11:00
codefiles 4592280baa
Refactor set_mirrors() (#3011) 2024-12-08 15:07:17 +11:00
codefiles ae3b0f8d75
Remove superfluous try in get_btrfs_info() (#3010) 2024-12-08 09:01:51 +11:00
Daniel Girtler 1d278f8abd
Fix 2991 - Restructure the mirror list handling (#3007)
* Fix 2991 - mirror configuration

* Update

* Update

* Update
2024-12-08 08:58:16 +11:00
codefiles 8f2bf2b737
Refactor set_hostname() (#3009) 2024-12-08 08:57:31 +11:00
codefiles 3400991c9b
Refactor enable_sudo() (#3008) 2024-12-08 08:56:58 +11:00
codefiles 19a0d49509
Update partition flags value (#3006) 2024-12-07 11:48:49 +11:00
codefiles 0a9fae2e57
Replace deprecated pydantic parse_raw() (#3004) 2024-12-07 10:20:23 +11:00
zbik 3905bfe31a
Update plasma.py (#2998)
changed kwrite to kate as the two packages merged together in 2022 and removed egl-wayland (why was it there in the first place?)
2024-12-03 20:03:42 +11:00
Michael Ziminsky (Z) 256f206b9e
btrfs improvements and fixes (#2970) 2024-12-01 18:35:30 +11:00
correctmost 60842bd1cf
Enable bare-except linter rules and fix warnings (#2988) 2024-12-01 18:34:51 +11:00
correctmost 0bc2ad700f
Enable the "unreachable" pylint warning and remove unused code (#2987)
The os.fsync call causes an "invalid argument" OSError when it
actually runs, so it has been removed altogether.

Closes #2773
2024-12-01 18:34:00 +11:00
correctmost 507e4322d6
Remove unused SysCommand.__json__ method (#2986) 2024-12-01 18:33:22 +11:00
correctmost 8fa5ec15af
Enable the yield-in-for-loop ruff rule and fix warnings (#2984) 2024-12-01 17:50:11 +11:00
correctmost af043afa88
Enable the unnecessary-lambda pylint rule and fix warnings (#2983) 2024-12-01 17:44:39 +11:00
correctmost e0db642366
Fix "selction" typo (#2981) 2024-12-01 17:43:29 +11:00
correctmost b49b5bfa11
Fix "Pssword" typo (#2980) 2024-12-01 17:42:33 +11:00
correctmost 760963f7a6
Enable the unused-variable pylint rule and fix warnings (#2978) 2024-12-01 17:41:34 +11:00
correctmost f578ac4ade
Remove unused argument from GlobalMenu._get_menu_options (#2977) 2024-12-01 17:41:03 +11:00
correctmost eacc28d577
Remove unused argument from AbstractCurses._confirm_interrupt (#2976) 2024-12-01 11:13:04 +11:00
correctmost a8fad93ae0
Add missing typing.override annotations reported by Pyright (#2974)
This commit also removes duplicated code in Viewport._replace_str.
2024-12-01 11:01:16 +11:00
correctmost 6a6642a9c1
Replace some Any instances with specific type hints (#2973) 2024-12-01 09:17:10 +11:00
correctmost 0a1d036750
Remove unused VersionDef class (#2972)
This allows the comparison-with-callable pylint rule to be enabled.
2024-12-01 08:40:38 +11:00
correctmost 007f2ff797
Use TypedDict to annotate disk-related serializations (#2935) 2024-11-30 22:56:46 +11:00
correctmost 1e6492d34a
Enable the printf-string-formatting ruff rule and fix warnings (#2967) 2024-11-30 22:54:20 +11:00
correctmost b0222111f5
Enable the redefined-builtin pylint rule and fix warnings (#2966) 2024-11-30 22:53:54 +11:00
correctmost 604526c3c8
Enable the f-string ruff rule and fix warnings (#2965) 2024-11-30 20:03:09 +11:00
correctmost d4c04a83a3
Enable the redefined-outer-name pylint rule and fix warnings (#2964) 2024-11-30 20:01:38 +11:00
correctmost 2825818af6
Enable useless-parent-delegation pylint rule and fix warnings (#2962) 2024-11-30 19:59:28 +11:00
correctmost 80eebcff4f
Enable the explicit-f-string-type-conversion rule and fix warnings (#2954) 2024-11-29 06:43:13 +11:00
correctmost f314b7be54
Replace some Any instances with specific type hints (#2950) 2024-11-28 20:14:58 +11:00
correctmost a28fb27a7a
Use human-friendly names in mypy and Pylint ignore directives (#2946) 2024-11-27 06:48:38 +11:00
Daniel Girtler 198efb5f53
Fix 2916 - Reinstate prompt in list menus (#2940)
* Reinstate prompt in list menus

* Ruff
2024-11-26 11:10:48 +01:00
Daniel Girtler e51f7adf21
Dataclasses for args and config (#2936)
* Introduce dataclass for arguments and configuration

* Update

* Update
2024-11-26 11:08:36 +01:00
correctmost f2bc5ff280
Remove unused Selector class (#2938)
The code is unused as of 88b91ae201.
2024-11-26 12:22:16 +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 6c37ba68e2
Remove unused singleton utility code (#2931) 2024-11-25 18:45:01 +11:00
Anton Hvornum aa80f8cf41
Bump to version 3.0.1 (#2920) 2024-11-23 11:45:32 +01:00
codefiles 7eb1f47084
Use binary units (#2917) 2024-11-23 08:53:32 +01:00
Daniel Girtler 5c83e230df
Fix 2915 - Reinstate partition information in device selection (#2919)
* Fix regresion in device selection - show partition info

* Fix linting
2024-11-23 08:52:53 +01:00
ots25 41600aefa4
Add files via upload (#2912)
Update  and fix Arabic translation
2024-11-23 08:19:36 +11:00
Thierry M b2b3a728a0
Update base.po (French) (#2907)
Hello,
Here is the update on the French language.
Best regards,
Roxfr
2024-11-22 19:07:11 +11:00
codefiles f5447e91c4
Increase suggested root partition size (#2905) 2024-11-22 07:23:21 +11:00
codefiles bda0752eec
Change partition flag name Boot -> BOOT (#2903) 2024-11-21 12:22:50 +11:00
codefiles 7fd726f03f
Fix log disk states (#2902) 2024-11-21 10:50:43 +11:00
utuhiro78 1464806f18
Update Japanese translation (#2900) 2024-11-21 09:01:09 +11:00
codefiles 0eac05cecc
Add linux-home partition flag (#2898) 2024-11-20 15:32:29 +01:00
codefiles 611af783aa
Fix partition flag value (#2897) 2024-11-20 14:49:34 +01:00
codefiles 83d222cec6
Rework partition flag (#2895) 2024-11-20 07:55:09 +01:00
codefiles 3453816b38
Fix hostname None (#2893) 2024-11-20 16:32:05 +11:00
walken f827851560
Czech localization update (#2891) 2024-11-20 13:04:56 +11:00
Hugo Carvalho 1e3fb257a2
Update portuguese translation (#2886) 2024-11-19 23:41:57 +01:00
codefiles 4f704b8501
Refactor partition type GUID (#2890) 2024-11-19 23:41:27 +01:00
Daniel Girtler 20cc124a6d
Fix seat-access selection (#2885)
* Fix seat-access selection

* Format import
2024-11-19 14:50:16 +01:00
BringBack1800s 69b443c1ad
Update hyprland.py (#2879) 2024-11-19 18:49:16 +11:00
summoner001 68a221ea1b
Update hungarian translation (#2884)
Fixing the „custom” word coherence.
Fixing mispelled „zram” -> zRam
2024-11-19 18:48:41 +11:00
codefiles f19f35897b
Add _get_key_file() (#2882) 2024-11-19 18:37:24 +11:00
codefiles 594ca3504f
Fix btrfs skip mount options (#2881) 2024-11-19 18:36:31 +11:00
Odyssey f034c3693c
Update Catalan translation (#2883) 2024-11-19 18:31:11 +11:00
correctmost f3f7700945
Remove unused Any instances from TYPE_CHECKING blocks (#2878)
This will make it easier to start removing more Any instances from
the codebase.
2024-11-19 18:30:41 +11:00
correctmost 3255744278
Sort and format remaining imports (#2877)
This commit also enables isort rules in the Ruff config.
2024-11-19 11:18:47 +11:00
correctmost 955b2cfc3e
Sort and format imports in lib/disk/ (#2875) 2024-11-18 23:29:56 +01:00
correctmost b3421c0a82
Sort and format imports in scripts/, tui/, and top-level files (#2874) 2024-11-19 08:16:38 +11:00
correctmost 0aa6dcc78e
Sort and format imports in examples/ and default_profiles/ (#2873) 2024-11-19 07:54:17 +11:00
correctmost 7776f82cbc
Reduce the max line length from 220 to 160 by wrapping some lines (#2867)
This will make it easier to auto-format import sections.
2024-11-19 07:50:53 +11:00
utuhiro78 89425912b9
Update Japanese translation (#2869) 2024-11-18 22:01:18 +11:00
correctmost 80b4dab092
Remove remaining Optional and Union usage from the codebase (#2868) 2024-11-18 20:59:08 +11:00
correctmost 97d6d84c3c
Replace most Union[] instances with pipe syntax (#2843) 2024-11-18 20:07:14 +11:00
correctmost 9626965982
Remove remaining deprecated typing.Dict and typing.List usage (#2859) 2024-11-18 20:02:35 +11:00
Daniel Girtler 41e5a0fcfd
Fixes 2849 (#2862) 2024-11-18 09:54:29 +01:00
Daniel Girtler f648eb6d66
Fix 2860 (#2863) 2024-11-18 09:52:32 +01:00
codefiles 6ca80d1fd7
Fix partition creation size end (#2858) 2024-11-18 09:04:12 +11:00
codefiles 8fc3dc4358
Parse lsblk data with pydantic (#2775) 2024-11-18 07:42:09 +11:00
Franco Castillo 74fd463873
Update Spanish translation (#2853) 2024-11-18 07:22:21 +11:00
summoner001 0c9064d6ad
Update Hungarian Translation (#2852)
Translate new strings
2024-11-18 07:22:04 +11:00
codefiles 80bba6c52b
Fix partition creation default size (#2856) 2024-11-18 07:20:12 +11:00
codefiles fad97e8465
Fix EditMenu input text (#2855) 2024-11-18 07:18:42 +11:00
utuhiro78 5aa73a5edc
Update Japanese translation (#2854) 2024-11-18 07:17:49 +11:00
Luna Jernberg 242ecc1ed2
Update base.po (#2848)
Update Swedish translation for 3.0
2024-11-17 12:07:38 +01:00
Anton Hvornum c16df5d80e
Bump to version 3.0.0 (#2847) 2024-11-17 10:02:51 +01:00
codefiles 68e2d8c3fa
Fix _mount_luks_partition() (#2838) 2024-11-17 09:40:52 +01:00
correctmost 80ad332d31
Enable multiple-statements-on-one-line-colon rule and fix warnings (#2845) 2024-11-17 19:39:14 +11:00
correctmost f13f3d53b6
Enable arguments-renamed Pylint rule and fix warnings (#2842) 2024-11-17 11:03:18 +11:00
correctmost 0dc77f8e8a
Replace more Optional instances with union syntax in lib/ (#2841) 2024-11-17 11:01:57 +11:00
correctmost 57e4362a49
Remove unreachable return statement in _handle_interrupt (#2840) 2024-11-17 11:00:16 +11:00
correctmost 6383b5e82f
Replace Optional with union syntax in scripts/ and tui/ (#2839) 2024-11-17 09:49:10 +11:00
correctmost 25172bd0f8
Start replacing Optional with union syntax in lib/ (#2837) 2024-11-17 09:03:01 +11:00
correctmost 8cda091e6d
Start replacing Optional with union syntax (UP007 rule in Ruff) (#2836) 2024-11-17 09:02:08 +11:00
Anton Hvornum 58e4a94fdf
Converting systemctl call to a simple ln call for debus reasons (#2835)
* Converting systemctl call to a simple ln call for debus reasons #2764
2024-11-16 18:55:21 +01:00
correctmost 9bed81522d
Fix unnecessary-class-parentheses (UP039) Ruff warning (#2833) 2024-11-16 20:55:17 +11:00
correctmost b96194d51a
Fix super-call-with-parameters (UP008) Ruff warning (#2832) 2024-11-16 20:54:46 +11:00
correctmost 44eb7f92e9
Fix useless-object-inheritance (UP004) Ruff warning (#2831) 2024-11-16 20:54:14 +11:00
correctmost d644b5cae2
Replace deprecated socket.error exception with OSError (#2830)
This warning was raised by the UP024 rule in Ruff.
2024-11-16 20:53:43 +11:00
correctmost 2d6eef4672
Fix redundant-open-modes (UP015) warnings from Ruff (#2828) 2024-11-16 20:52:55 +11:00
correctmost 44f4bc8612
Use union syntax for isinstance checks (UP038 rule in Ruff) (#2829) 2024-11-16 10:47:01 +01:00
Daniel Girtler b61b5c82fa
Simplify translation call in f-string (#2826) 2024-11-16 10:46:33 +01:00
correctmost 2408b597be
Enable the E128 flake8 rule for all code except for __init__.py (#2827)
This commit also fixes a few files that had non-uniform indentation.
2024-11-16 19:34:29 +11:00
correctmost 6102a08c6d
Enable the W504 binary operator rule in flake8 (#2825) 2024-11-16 18:57:08 +11:00
correctmost ecad6762e5
Fix some mypy warnings in the lib/ directory (#2822) 2024-11-16 18:27:26 +11:00
goose3228 a0d88f5ee2
Warn user when UEFI is disabled (#2806) 2024-11-16 18:23:08 +11:00
correctmost 1af5135013
Enable the flake8-implicit-str-concat Ruff rules (#2819) 2024-11-16 17:07:14 +11:00
correctmost 01b72b9293
Remove most of the remaining deprecated typing imports (#2818) 2024-11-16 14:01:24 +11:00
correctmost e23e5e7f2a
Enable stricter global mypy defaults (#2817)
Some checks only need to be disabled for the lib/ directory now.
2024-11-16 13:56:43 +11:00
correctmost a4935bdd10
Fix mypy warnings in the tui/ directory (#2816) 2024-11-16 12:00:31 +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
Jack Desert 591b8317ea
Notify user of LOG_PATH upon completion (#2804)
Co-authored-by: jack <jack>
2024-11-15 13:56:54 +11:00
Thiago Castro 040a6aba27
Package name correction 'xss-lock', i3.py (#2796)
Package name correction 'xss-lock' needed in the base installation of the i3 desktop.

Link to the caused error and related issue:
Issue: https://github.com/archlinux/archinstall/issues/2790
Pull: https://github.com/archlinux/archinstall/pull/2791
Man: https://man.archlinux.org/man/xss-lock.1
2024-11-11 10:57:50 +11:00
Daniel Girtler 28eaa8c0e4
Wait for LVM info to appear (#2778)
* Wait forever for LVM info

* Update
2024-11-09 14:20:25 +01:00
Jack Desert de664dfa39
Include xss-set when installing i3wm (#2791)
Co-authored-by: jack <jack>
2024-11-09 10:16:15 +01:00
Daniel Girtler 9951c90bf9
Fix local mirror selection (#2789) 2024-11-09 09:49:23 +01:00
Daniel Girtler 83ece36ec3
Ignore disk encryption config when no password found (#2779) 2024-11-07 13:08:42 +01:00
correctmost 0370e893ac
Enable the self-assigning-variable Pylint warning (#2772) 2024-11-04 18:34:05 +01:00
correctmost aecf3ea553
Add Pylint support and enable Pylint CI checks (#2658) 2024-11-04 14:30:28 +01:00
Suica e3123671bf
Retry when speedtest fails. (#2657) 2024-11-04 12:59:39 +01:00
Daniel Girtler 4a06131f4d
fix-2740 - Handle empty iface selection (#2747) 2024-11-04 12:42:54 +01:00
Daniel Girtler 918ac5c765
Fix 2735 - Erase luks partition explicitly (#2745) 2024-11-04 12:42:12 +01:00
codefiles 7437668f1e
Handle lsblk output bytes in json.loads() (#2741) 2024-11-04 12:39:31 +01:00
codefiles 481b570dae
Move logging code outside of command execution try-except block (#2739) 2024-11-04 12:38:58 +01:00
Daniel Girtler 8ec1715eb8
Fix 1716 - Retry on mirror list fetching (#2736)
* Fix 1716 - retry on http calls

* Update

* Update
2024-11-03 21:46:08 +01:00
Aindriú Mac Giolla Eoin 2fab780c74
Added Irish/Gaeilge to installer languages (#2761) 2024-10-31 10:39:57 +11:00
Hugo Carvalho b3249badf3
Update Portuguese translation (#2763)
Improvements and corrections
2024-10-31 09:49:05 +11:00
Favilances 59384615a5
Update Turkish translation (#2760) 2024-10-28 22:13:28 +11:00
summoner001 b8f0944b19
Update hungarian translation (#2733)
Minor fixes and polishing the text.
2024-10-16 07:48:35 +11:00
summoner001 e452804625
Update hungarian translation (#2730)
fix misspells
fix coherence in the sentences
simplifying senteces
make more corence with other linux installers (example: ubiquity, calamares)
2024-10-14 09:56:04 +11:00
Luna Jernberg a061e8e4f3
Update and Complete -- Swedish Translation (#2725)
* Update base.po

Found a typo when installing Arch Linux to a couple of new NVMEs from Seagate/WD from Inet/Webhallen yesterday and today, found a typo fixed a typo, added some more Swedish while i was at it

* Update base.po

Update and complete Swedish Translation
2024-10-09 12:20:49 +11:00
Luna Jernberg 155610add0
Update base.po (#2717)
Found a typo when installing Arch Linux to a couple of new NVMEs from Seagate/WD from Inet/Webhallen yesterday and today, found a typo fixed a typo, added some more Swedish while i was at it
2024-10-04 07:43:20 +10:00
codefiles 661328767c
Exclude archiso loop device (#2715) 2024-10-03 16:11:20 +10:00
summoner001 a93bac15da
Fixing hungarian translation (#2709)
Minor fix
2024-10-02 07:20:47 +10:00
summoner001 7341383d90
Fixing hungarian translation (#2702)
Fixing hungarian translation
2024-09-29 12:05:16 +10:00
codefiles 1682574905
Remove duplicate sector_size (#2701) 2024-09-28 09:39:45 +10:00
codefiles 8db3c7d65d
Add get_loop_devices() (#2698) 2024-09-25 23:02:51 +10:00
codefiles 8e9b1bc727
Remove lsblk default columns (#2697) 2024-09-24 09:57:45 +10:00
codefiles ff3b44e191
Remove import of pyparted _ped (#2696) 2024-09-23 11:51:54 +10:00
K.B.Dharun Krishna 3d5fa9270d
po: update Tamil translation (#2693) 2024-09-22 07:35:52 +10:00
summoner001 db3c86dd86
Update Hungarian translation (#2692)
Minor sentence fixes
2024-09-22 07:35:33 +10:00
codefiles a45bd248c7
Convert lsblk mountpoint str to Path object (#2676) 2024-09-09 07:28:09 +10:00
correctmost 7235e21c3a
Remove some deprecated typing.Dict and typing.List usage (#2673) 2024-09-08 08:10:38 +10:00
codefiles 876d155be9
Move device after options in lsblk command (#2670) 2024-09-07 09:26:27 +10:00
codefiles 6a2a204f18
Add udev_sync() (#2669) 2024-09-06 23:29:12 +02:00
Thierry Massart 6a7a65f619
French language update (#2664)
A translated word
2024-09-03 16:46:52 +10:00
correctmost 8391668a2e
Add ruff linting support (#2654) 2024-08-29 13:51:12 +02:00
Anton Hvornum 3d35da71df
Bumping version to: v2.8.6 (#2656) 2024-08-28 22:45:46 +02:00
correctmost 35c8eb3394
Fix unnecessary f-strings and enable flake8 rule (#2653) 2024-08-29 03:01:55 +10:00
correctmost 62b4099c8d
Fix whitespace issues detected by flake8 (#2652)
This commit also removes exclusions that are no longer needed.
2024-08-29 01:40:53 +10:00
correctmost 7b5f1f72f9
Expand mypy checks to include more files and more checks (#2651)
This commit also centralizes the mypy configuration in one spot.
2024-08-29 00:39:22 +10:00
correctmost 62d66e1caf
Fix most mypy errors in archinstall/scripts/, docs/, and the __init__ file (#2641) 2024-08-29 00:24:08 +10:00
Suica 0601708a02
Use `0` instead of `None` when the speedtest fails. (#2650) 2024-08-28 11:57:21 +02:00
Daniel Girtler 0fc9d6f4f4
Fix 2625 - server profile selection (#2647) 2024-08-28 09:41:37 +02:00
Anton Hvornum 74f4fb02cd
Bumping version to: v2.8.5 (#2645) 2024-08-28 07:57:05 +02:00
Anton Hvornum 905479c1b2
Added error handling for invalid certificates during speedtest. Also added a generic error handler to catch all network errors (#2644) 2024-08-28 07:50:13 +02:00
correctmost c7aeead7d2
Fix various mypy errors in archinstall/lib/ (#2640)
* Fix various mypy errors in archinstall/lib/

* Additional mypy fixes in archinstall/lib/ to pass CI checks
2024-08-28 05:43:54 +10:00
correctmost 63b4184f70
Fix most of the mypy errors in archinstall/lib/disk/ (#2639) 2024-08-28 05:40:51 +10:00
correctmost 1e7f1194d7
Fix most of the mypy errors in archinstall/tui/ (#2638) 2024-08-28 00:55:53 +10:00
correctmost 7835784be5
Fix most of the mypy errors in archinstall/default_profiles/ (#2636) 2024-08-27 15:07:49 +10:00
Franco Castillo 446aa44007
Update Spanish translation (#2635)
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2024-08-27 04:20:33 +10:00
Anton Hvornum fe5e7cdbf7
Bumping version to: v2.8.4 (#2633) 2024-08-26 13:03:49 +02:00
Vasiliy Stelmachenok 3fa70722a9
Do not overwrite the contents of mkinitcpio.conf (#2532) 2024-08-26 12:57:45 +02:00
Anton Hvornum 9abd3a82cc
Added error handling for mirrors that time out mid-read (#2632) 2024-08-26 12:50:37 +02:00
summoner001 949337ddf3
Update Hungarian translation (#2630)
After testing Archinstal v2.8.3, I fixed some minor translation and typo mistakes.
Sorry for my mistakes.
This translation is ready to use.
2024-08-26 02:37:48 +10:00
Hugo Carvalho dd5cbc93fa
Update Portuguese translation (#2629) 2024-08-26 02:37:27 +10:00
Anton Hvornum 1097e5ca17
Bumping version to: v2.8.3 (#2627) 2024-08-25 10:20:32 +02:00
codefiles 179ba3cd9a
Fix load_devices() lsblk (#2565)
* Fix load_devices() lsblk

* Add udev sync before load_devices() lsblk call
2024-08-23 17:22:26 +02:00
Odyssey b9183f4df3
Add Catalan translation (#2623) 2024-08-23 08:29:23 +02:00
codefiles d2acdb4977
Refactor create_btrfs_volumes() (#2621) 2024-08-22 16:41:10 +10:00
Anton Hvornum 6d0cf26eba
Added a advanced=bool flag to Profile() class and enabled it on the cosmic-epoch profile (#2619)
* Added a advanced=True flag to Profile() class, to be able to hide certain profiles behind --advanced

* Removed debugging sleep

* Made sure cosmic-greeter was hidden behind --advanced, and cleaned up --advanced checks on Profile()

* storage['arguments'] is not defined during code-init, falling back to sys.argv for cosmic-greeter check
2024-08-22 08:28:16 +02:00
utuhiro78 00eeae0abd
Update Japanese translation (#2620) 2024-08-21 17:49:37 +02:00
arlsdk ff24ceb8d4
#2587 Sugesstions for Cinammon default_profile (#2612) 2024-08-20 18:41:01 +10:00
summoner001 5707372bb4
Update hungarian translation (#2618)
Translating the new string

Ready to merge.
2024-08-19 13:48:29 +02:00
killertofus b1ead53846
added cosmic for a desktop (#2615)
* cosmic is out of the aur
2024-08-17 16:40:07 +02:00
Anton Hvornum f6776f3801
Bumping version to: v2.8.2 (#2616) 2024-08-17 10:07:02 +02:00
Daniel E Rodriguez Rivera 58d74ea237
Refactor Argument Parsing Logic (#2605)
* Update Spanish translation for 'greeter'

* Moved the os.execve call below the debug logging statement in SysCommandWorker

* Fix call to removed function in DesktopProfile class

* Refactor: Move precondition check for '=' to the beginning of the loop

This commit moves the check for the '=' element to the start of the while loop in the `parse_unspecified_argument_list` function. This change improves code readability and ensures that the precondition is evaluated before processing other elements, enhancing the overall flow of the argument parsing logic.

* Refactor: Remove redundant 'else' statement in argument parsing logic

This commit simplifies the control flow in the `parse_unspecified_argument_list` function by removing a redundant 'else' block. The logic is streamlined to improve readability and maintainability while preserving the original functionality. The removal of unnecessary nesting helps clarify the conditions under which elements are processed.

* Refactor: Remove redundant 'else' statement in argument parsing logic

This commit simplifies the control flow in the `parse_unspecified_argument_list` function by removing a redundant 'else' block. The logic is streamlined to improve readability and maintainability while preserving the original functionality. The removal of unnecessary nesting helps clarify the conditions under which elements are processed.

* Replace conditional validation with filtering

This commit modifies the `parse_unspecified_argument_list` function to filter out unwanted elements from the `unknowns` list instead of using a conditional check with an `if` statement. This change improves code readability and efficiency by utilizing list comprehension to create a new list that excludes elements equal to "=".
2024-08-05 12:38:53 +02:00
mintsuki fed39f21c9
Updates for new Limine 8.x config filename and syntax (#2606) 2024-08-03 11:56:07 +02:00
Anton Hvornum 98518e444a
Use `/mirrors/status/json/` instead of `/mirrorlist/` to get mirror lists (#2599)
* Using JSON endpoint instead of ASCII endpoint for mirror listing, as the JSON endpoint is cached and easier to parse

* Added a TODO to handle unknown regional mirrors (which lacks info in the backend)

* Filtered out 'bad' mirrors. Also added a sorting mechanism that uses the mirrors 'score' rather than just the URL name. This will emulate the reflector.service/rankmirrors behavior and thus reducing the need to re-rank the mirrors.

* Added the ability to sort mirrors via latency or download speed using sorted(mirror_list, key=lambda mirror: (mirror.score, mirror.speed)) - but I have not implemented the sorting via the menu yet, and I have not integrated the new MirrorStatus model into the handling of URL's. I still need to figure out where the {region: [url, url]} is being used, so that i can convert to {region: [mirror.url, mirror.url]} logic.

* Converting MirrorStatus model to {mirror: [url, url]}

* Added debug information for /var/log/archinstall/install.log

* Fixing flake8

* Fixed issue where 'dead' mirrors have no score, and thus can't be round():ed

* Forgot to return model validation data after validation

* Improving debug/info output

* Reverting change in #2350 - Writing over instead of appending to mirrorlist

* Mirror URL's reported by the JSON endpoint does not contain the repo format, only the base location for the mirror. So we have to adjust for this.

* pydantic did not honor 'private' variables in 'before' model validator, had to change to 'after' instead.

* Sorted out mypy typing matching the new MirrorStatus model

* Added pydantic as a dependency, it's time!

* Updated workflow to include pydantic

* Added return values from model @property decorators.
2024-08-02 15:24:44 +02:00
NorwayFun 4af3b02707
po: Update Georgian translation (#2604)
* Add files via upload

* Update Georgian translation
2024-08-02 16:09:31 +10:00
Tristan d'Audibert a72d798ee6
fix(lib/installer.py) Patch mkinitcpio.conf with putting encrypt after keymap (#2601)
Signed-off-by: Tristan d'Audibert <tristan.daudibert@gmail.com>
2024-08-02 14:47:00 +10:00
Daniel E Rodriguez Rivera 74ba8fb3b4
Fix call to removed function in DesktopProfile class (#2596)
* Update Spanish translation for 'greeter'

* Moved the os.execve call below the debug logging statement in SysCommandWorker

* Fix call to removed function in DesktopProfile class
2024-07-30 21:55:34 +10:00
walken a5fd20595d
Czech localization update (#2597) 2024-07-30 21:52:34 +10:00
codefiles a2e539a2bd
Fix mount order (#2595) 2024-07-29 08:24:29 +02:00
Daniel E Rodriguez Rivera 3bdead0390
Reposition os.execve call to enable debug logging before child process termination (#2593)
* Update Spanish translation for 'greeter'

* Moved the os.execve call below the debug logging statement in SysCommandWorker
2024-07-29 08:16:46 +10:00
Daniel Girtler 32bc37545e
Upgrade mypy 1.11 (#2588)
* Upgrade mypy 1.11

* Update

* Update

* Remove TProfile type
2024-07-27 07:23:47 +10:00
Daniel E Rodriguez Rivera 494cc29a3f
Update Spanish translation for 'greeter' (#2592) 2024-07-26 07:37:41 +10:00
Wellinton Kricowski 552930a98a
PT BR translation improvements (#2586)
* Update pt-BR translation

* [pt_BR] locales_generator + translation improvements

* PT BR translation improvements
2024-07-23 15:55:43 +10:00
*=0=1=4=* 8ecc77992f
`disk.Size(1, disk.Unit.GiB, sector_size)` for issue #913 (#2583)
* `disk.Size(1, disk.Unit.GiB, sector_size)` for issue #913

* default boot sector size is same for all partition layouts
2024-07-23 14:33:45 +10:00
Alexmelman88 ef252f5d0a
Update Russian translation (#2578) 2024-07-20 17:16:16 +10:00
Wise 5c85026582
Update Turkish translation (#2577) 2024-07-19 07:19:36 +10:00
GandalfBaum12371723613 52a795da66
Corrected one translation and added some more (#2574) 2024-07-12 07:26:01 +10:00
GandalfBaum12371723613 490e67e832
Update base.po (#2571) 2024-07-11 20:03:00 +02:00
Daniel Girtler b9ab1e2b16
Curses menu - Continued (#2569)
* Edit text menu

* Fix alignment

* Scroll functionality

* Fix flake8
2024-07-11 19:54:24 +02:00
Kenneth Seet 0f1c8ab4be
Update user permission check for --help (#2568)
* Update user permission check for --help

* Fix code style

* Fix code style

* Fix docstring

* Fix newline

* Fix newline

* Fix argument error

* Fix formatting
2024-07-11 11:43:58 +10:00
Alexmelman88 50d269957a
Update Russian translation (#2564) 2024-07-07 15:31:47 +10:00
K.B.Dharun Krishna 755ce76e31
l10n/po: update Tamil translation (#2551) 2024-06-28 17:54:19 +02:00
Franco Castillo 18478dcb20
Update base.pot and base.po (es) (#2552)
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2024-06-28 17:54:02 +02:00
summoner001 3dce07f6ba
Fixing mistakes (#2555)
Fixing mistakes after testing Archinstall v2.8.1
2024-06-28 17:53:33 +02:00
utuhiro78 31917a7e94
Update Japanese translation (#2550) 2024-06-26 07:57:10 +10:00
summoner001 054701f991
Translation of the new strings (#2545)
Translation of the new strings and minor fixes.
2024-06-25 18:30:24 +10:00
Roxfr 79ddbf724f
Add files via upload (#2548) 2024-06-25 18:29:42 +10:00
Anton Hvornum e938074123
Updated all language files in prep for release (#2544) 2024-06-23 10:16:49 +02:00
Anton Hvornum 354fa5a2e4
Bumping version to v2.8.1 (#2543) 2024-06-23 10:13:22 +02:00
summoner001 0af6cfbc35
Cleaning translation (#2541)
I fixing misspells, typos, and make the text more readable.
I have reworded it in several places to make it easier to understand, and to make it more similar to the Hungarian text of other more common Linux installers.

Ready to use.
2024-06-20 22:10:32 +10:00
Daniel Girtler aa87fb1db5
Strict mypy - Phase 1 (#2533)
* Strict mypy for examples/
2024-06-13 21:35:54 +02:00
Daniel Girtler 9c5a66b145
Add beta label to LVM support (#2531) 2024-06-08 09:18:19 +02:00
arlsdk 4d35409a53
Improved Turkish Translation for archinstall (#2530) 2024-06-08 09:24:47 +10:00
Daniel Girtler 5c180f0741
New menu implementation with curses (#2506)
* TUI

* Fix menu iterating

* Add help menu

* Add column menu

* Fix filter

* Tweaked import statement

---------

Co-authored-by: Anton Hvornum <torxed@archlinux.org>
2024-06-06 22:31:15 +02:00
616C6C 6524ada762
Update base.po (#2528) 2024-06-05 07:36:46 +10:00
codefiles 6747c9e5d8
Skip devices that fail to get pyparted Disk (#2526) 2024-06-05 07:36:06 +10:00
Alexmelman88 b2d29eeba3
Update Russian translation (#2521) 2024-05-28 22:49:13 +10:00
Alexandre Petit 6b48d788b5
Update mkinitcpio.conf hooks for upstream consistency (#2515)
This commit adjusts the hooks in mkinitcpio.conf to follow the changes
in the upstream mkinitcpio repository.
It also add the consolefont hook if udev is used instead of systemd.

Addresses upstream commits:
[mkinitcpio.conf: add kms to the default HOOKS array](b99eb1c0d5)
[mkinitcpio.conf: adjust the placement of the modconf hook for consistency](0b052b1461)

Additionally, it replaces the missing `consolefont` hook if the
`keyboard` hook is used instead of the `sd-vconsole` hook.
For more details, see the Arch Wiki:
[dm-crypt/System configuration - 1.1 mkinitcpio](https://wiki.archlinux.org/title/Dm-crypt/System_configuration#mkinitcpio)
2024-05-25 17:57:04 +10:00
AbderrazakBouasker ffe8279127
arabic translation updated and fully completed (#2518)
* added 50% of the translation

* 51% done

* completed arabic translation
2024-05-22 22:11:06 +10:00
codefiles cee32670f3
Refactor umount() (#2516) 2024-05-19 11:29:02 +10:00
codefiles 63cfee434e
Convert partition path string to a Path object (#2514) 2024-05-19 08:04:48 +10:00
codefiles 09fdb9e80c
Refactor format() (#2512) 2024-05-19 08:03:11 +10:00
codefiles 15ee84b7c9
Refactor suggest_single_disk_layout() (#2508) 2024-05-17 22:57:03 +10:00
Franco Castillo 8b8b668414
Update base.pot and base.po (es) (#2509)
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2024-05-16 11:54:35 +10:00
ngn 39d096b79f
Use the current layout instead of the us layout (#2495)
* use the current layout instead of the us layout

* fix linting erros and add exception handling for SysCommand
2024-05-15 21:41:42 +10:00
Daniel Girtler bab06e4d75
Fix 2496 - umounting all partitions (#2498)
* Fix 2496 - umounting all partitions

* Update
2024-05-15 12:47:20 +02:00
codefiles 06baa08750
Set root partition type GUID (#2505) 2024-05-15 13:06:27 +10:00
arlsdk af9d741175
Turkish translate has been improved (#2502) 2024-05-15 12:16:24 +10:00
Daniel Girtler fd23efdcfb
Fix 2479 - remove unnecessary partiton info field (#2485) 2024-05-09 23:06:06 +02:00
Kevin FERRIER 3af850632f
change default root partition size (#2415) 2024-05-09 13:37:38 +10:00
Uday Jadhav e5b6f46032
Add applications to Hyprland desktop profile (#2481) 2024-05-05 15:08:03 +10:00
a 3ccb5140aa
Update base.po (#2468)
* Update base.po

* Update base.po

* update tr

* tr update
2024-05-02 08:14:51 +10:00
utuhiro78 b8052c566c
Update Japanese translation (#2478) 2024-04-27 08:47:05 +10:00