Commit Graph

3507 Commits

Author SHA1 Message Date
correctmost 6ba0e5c441
Fix minor copy/paste errors in GitHub workflow configs (#2672) 2024-09-08 08:08:55 +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
renovate[bot] 7c08822d08
Update dependency pydantic to v2.9.0 (#2667)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-06 11:50:46 +10:00
renovate[bot] 6857938ab0
Update pre-commit hook astral-sh/ruff-pre-commit to v0.6.4 (#2666)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-06 10:54:32 +10:00
renovate[bot] a817fe2404
Update dependency ruff to v0.6.4 (#2665)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-06 10:54:16 +10:00
Thierry Massart 6a7a65f619
French language update (#2664)
A translated word
2024-09-03 16:46:52 +10:00
renovate[bot] 342122e0b0
Update pre-commit hook astral-sh/ruff-pre-commit to v0.6.3 (#2661)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-30 02:24:49 +10:00
renovate[bot] 588d69bd7d
Update dependency ruff to v0.6.3 (#2660)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-30 02:24:32 +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
renovate[bot] a55922cd56
chore(deps): update pre-commit hook pre-commit/mirrors-mypy to v1.11.2 (#2628)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-26 02:36:46 +10:00
Anton Hvornum 1097e5ca17
Bumping version to: v2.8.3 (#2627) 2024-08-25 10:20:32 +02:00
renovate[bot] 211ce2d65b
chore(deps): update dependency mypy to v1.11.2 (#2626)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 15:21:01 +10: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
renovate[bot] 65b09ca618
chore(deps): update pre-commit hook pycqa/flake8 to v7.1.1 (#2608)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-05 07:34:38 +10:00
renovate[bot] 727368e09d
chore(deps): update dependency dev/flake8 to v7.1.1 (#2607)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-05 07:34:19 +10: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
renovate[bot] 997e28d8dd
Update pre-commit hook pre-commit/mirrors-mypy to v1.11.1 (#2603)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 21:00:28 +10:00
renovate[bot] 2f4bb97483
Update dependency dev/mypy to v1.11.1 (#2602)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 12:32:01 +10:00