Commit Graph

1460 Commits

Author SHA1 Message Date
Xuan-Rui Fan 11cecbb3dc
Add traditional Chinese translation (#1823)
* Add Traditional Chinese (Taiwan)

* Update languages.json
2023-06-05 10:06:37 +02:00
codefiles f51fd1a278
Detect more modules requiring `alsa-firmware` (#1822) 2023-06-05 10:05:38 +02:00
Daniel Girtler 06eadb31d4
Move locales and cleanup menu (#1814)
* Cleanup imports and unused code

* Cleanup imports and unused code

* Update build check

* Keep deprecation exception

* Simplify logging

* Move locale into new sub-menu

---------

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-06-05 10:02:49 +02:00
bd-g 3267ee215a
Improve Save configuration UI - (re)allow for directly specifying custom path (#1728)
* align with newly merged master

* retry save config

* fix mypy error with str type - this menu with allows return a string

* Removed unused import

---------

Co-authored-by: Anton Hvornum <anton@hvornum.se>
2023-05-15 15:53:06 +02:00
Anton Hvornum b1f26d94e6
Allowing for fg='color' in info, warn, error and debug. (#1818)
* Allowing for fg='color' in info, warn, error and debug.

* Converted to a more static definition, mypy does not like magic.

* Flake8 fixes
2023-05-15 15:50:11 +02:00
Daniel Girtler 8a292a163e
Add custom mirror support (#1816)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-15 09:16:18 +02:00
codefiles 06f35fd289
Install the package `alsa-firmware` if required (#1812) 2023-05-12 14:01:24 +02:00
codefiles 128db1cdf6
Install the package `sof-firmware` if required (#1811) 2023-05-12 08:24:14 +02:00
Daniel Girtler 89cefb9a1c
Cleanup imports and unused code (#1801)
* Cleanup imports and unused code

* Update build check

* Keep deprecation exception

* Simplify logging

---------

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-11 18:30:09 +02:00
Daemon Coder a968dccbf1
Fix default value idx in `_determine_cursor_pos()` (#1800)
Co-authored-by: Daniel Girtler <blackrabbit256@gmail.com>
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-07 08:48:46 +02:00
Daniel Girtler c0a7d45a83
Fix 1792 (#1795)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-07 08:40:44 +02:00
Daniel Girtler 525c94bf36
Fix 1793 (#1794)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-07 08:39:25 +02:00
Daniel Girtler eb23b2d7c9
Update version 2.5.6 (#1791)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-07 08:38:29 +02:00
Daniel Girtler 235c1190b0
Fix 1763 (#1790)
* Fix 1763

---------

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-06 08:09:58 +02:00
Daemon Coder f0fc6a77f2
Fix NTP option (#1788) 2023-05-06 08:09:34 +02:00
Daemon Coder 1330c68084
Fix `LsblkInfo` size field (#1787) 2023-05-05 07:47:35 +02:00
xenium 15199081e5
Adding Hyperland wm (#1785) 2023-05-04 17:30:40 +02:00
Daemon Coder f211906a5a
Remove obsolete enabling of NTP in ISO (#1729)
* Remove obsolete enabling of NTP in ISO

* Fixed flake8 linting

* Remove `activate_ntp()`

* Update comment

---------

Co-authored-by: Anton Hvornum <anton@hvornum.se>
2023-05-04 16:04:35 +02:00
Daemon Coder fd83f073f3
Update `SysCommand()` calls in remaining files (#1707) 2023-05-04 10:42:37 +02:00
Daemon Coder adceed22ad
Fix logic errors in `_fetch_lsblk_info()` (#1754) 2023-05-04 09:45:43 +02:00
Daniel Girtler 9e5d45c5d8
Fix 1780 (#1782)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-04 07:23:43 +02:00
Anton Hvornum 2531a57050
Fixing starting of service via str argument (#1779) 2023-05-03 17:52:51 +02:00
Daniel Girtler 2d06cf592a
Fix 1772 (#1773)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-03 16:37:55 +02:00
Daniel Girtler ec4ecbcb7a
Full mypy compliance and small fixes (#1777)
* Fix mypy compliance

---------

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-03 16:36:46 +02:00
Daniel Girtler e78ddb03e1
Attempt to fetch partuuid multiple times (#1770)
* Attempt to fetch partuuid multiple times

* Update

---------

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-04-28 14:18:48 +02:00
Daniel Girtler 32982b880b
Fix import and configuration loading issues (#1764)
* Fix import and configuration loading issues

* Fix mypy

---------

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-04-22 08:04:36 +02:00
Daniel Girtler 00b0ae7ba4
PyParted and a large rewrite of the underlying partitioning (#1604)
* Invert mypy files

* Add optional pre-commit hooks

* New profile structure

* Serialize profiles

* Use profile instead of classmethod

* Custom profile setup

* Separator between back

* Support profile import via url

* Move profiles module

* Refactor files

* Remove symlink

* Add user to docker group

* Update schema description

* Handle list services

* mypy fixes

* mypy fixes

* Rename profilesv2 to profiles

* flake8

* mypy again

* Support selecting DM

* Fix mypy

* Cleanup

* Update greeter setting

* Update schema

* Revert toml changes

* Poc external dependencies

* Dependency support

* New encryption menu

* flake8

* Mypy and flake8

* Unify lsblk command

* Update bootloader configuration

* Git hooks

* Fix import

* Pyparted

* Remove custom font setting

* flake8

* Remove default preview

* Manual partitioning menu

* Update structure

* Disk configuration

* Update filesystem

* luks2 encryption

* Everything works until installation

* Btrfsutil

* Btrfs handling

* Update btrfs

* Save encryption config

* Fix pipewire issue

* Update mypy version

* Update all pre-commit

* Update package versions

* Revert audio/pipewire

* Merge master PRs

* Add master changes

* Merge master changes

* Small renaming

* Pull master changes

* Reset disk enc after disk config change

* Generate locals

* Update naming

* Fix imports

* Fix broken sync

* Fix pre selection on table menu

* Profile menu

* Update profile

* Fix post_install

* Added python-pyparted to PKGBUILD, this requires [testing] to be enabled in order to run makepkg. Package still works via python -m build etc.

* Swaped around some setuptools logic in pyproject

Since we define `package-data` and `packages` there should be no need for:
```
[tool.setuptools.packages.find]
where = ["archinstall", "archinstall.*"]
```

* Removed pyproject collisions. Duplicate definitions.

* Made sure pyproject.toml includes languages

* Add example and update README

* Fix pyproject issues

* Generate locale

* Refactor imports

* Simplify imports

* Add profile description and package examples

* Align code

* Fix mypy

* Simplify imports

* Fix saving config

* Fix wrong luks merge

* Refactor installation

* Fix cdrom device loading

* Fix wrongly merged code

* Fix imports and greeter

* Don't terminate on partprobe error

* Use specific path on partprobe from luks

* Update archinstall/lib/disk/device_model.py

Co-authored-by: codefiles <11915375+codefiles@users.noreply.github.com>

* Update archinstall/lib/disk/device_model.py

Co-authored-by: codefiles <11915375+codefiles@users.noreply.github.com>

* Update github workflow to test archinstall installation

* Update sway merge

* Generate locales

* Update workflow

---------

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Co-authored-by: Anton Hvornum <anton@hvornum.se>
Co-authored-by: Anton Hvornum <anton.feeds+github@gmail.com>
Co-authored-by: codefiles <11915375+codefiles@users.noreply.github.com>
2023-04-19 12:55:42 +02:00
codefiles 5253e57e9f
Remove superfluous time sync steps (#1752) 2023-04-19 12:52:51 +02:00
codefiles 5689d4f59f
Fix sd-boot code duplication (#1721) 2023-04-04 09:46:49 +02:00
Jefferson Michael e77f90cef0
PT BR translation improvements (#1717) 2023-04-04 09:19:16 +02:00
bd-g 7ad00d96e1
Make it easier to save configuration files (#1659)
* updated save menu for configuration files

* add log message to TUI to let user know we may run for a second finding save directories

* remove testing line

* remove unnecessary non-relative import

* fix bug when skipping save location

* make save configuration translatable

* fix linting errors

* handle skip and reset options correctly

* fix flake8 linting error

---------

Co-authored-by: Anton Hvornum <anton@hvornum.se>
2023-04-01 10:13:18 +02:00
laymoth c3e3ac67c6
Update id translation (#1700) 2023-03-30 12:55:14 +02:00
laymoth 60cdb81c78
Update locale files (#1699) 2023-03-30 10:55:28 +02:00
Bao a822735dfe
Guard against null in config processor (#1705)
Fixes #1704
2023-03-30 10:08:08 +02:00
codefiles c5348564c9
Update `SysCommand()` calls in `installer.py` (#1703) 2023-03-30 09:35:01 +02:00
Anton Hvornum 9fe9fd6e62
Version bump v2.5.4 (#1694) 2023-03-29 13:29:13 +02:00
codefiles 194f132577
Use `pacstrap -K` (#1693) 2023-03-29 12:48:42 +02:00
Daniel Girtler 83f4b4178f
Save encryption configuration (#1672)
* Save encryption configuration

* Fix deserialization problem

* Added .part_uuid to MapperDev

---------

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Co-authored-by: Anton Hvornum <anton@hvornum.se>
Co-authored-by: Anton Hvornum <anton.feeds+github@gmail.com>
2023-03-29 12:48:11 +02:00
Anton Hvornum b2fc71c9e5
Added .part_uuid to MapperDev (#1691) 2023-03-27 13:47:07 +02:00
Anton Hvornum ef5011114d
Improved handling of .json() helper handling. By dumping it with the JsonEncoder and loading it back in we ensure that any recursive objects also meers the json friendly dict criterias. (#1689) 2023-03-26 22:05:52 +02:00
Lautron 942112f871
Check if line begins with 'warning' before adding it to package info (#1674)
* Check if line begins with 'warning' before adding it to package info,
fix #1673

* Implement @Torxed suggestion from #1674

* Replaced 4 spaces with 1 tab

---------

Co-authored-by: Anton Hvornum <anton.feeds+github@gmail.com>
Co-authored-by: Anton Hvornum <anton@hvornum.se>
2023-03-26 21:47:36 +02:00
Murphy 6fdfd93e69
Partition creation prompt text (#1683)
* new prompt text

* remove quotes
2023-03-26 21:42:24 +02:00
codefiles f6113107d6
Change exit status indications to exit codes (#1685) 2023-03-26 21:40:08 +02:00
codefiles 79eb6bba62
Fix `exit_code` (#1679) 2023-03-14 21:24:15 +01:00
Yunus Emre Aydın f0a6adb96d
Fixed flake8 warnings (#1676) 2023-03-14 11:05:17 +01:00
chestwood96 6884cd52cb
Initial swapfile prototype (#1558)
* Initial swapfile prototype

* add_swapfile different exception handling

* Added error handling to add_swapfile prototype

---------

Co-authored-by: Anton Hvornum <anton.feeds+github@gmail.com>
2023-03-10 15:07:36 +01:00
mrvantage e4f3198505
Error handling cmd history (#1560)
* If we encounter a FileNotFoundError, the cmd_history.txt file or parent directory does not exist. This leads to vague errors upstream of cmd executable file not existing if this is the case. Probably this is a valid situation and we should just pass on the error.
2023-03-10 14:58:41 +01:00
Escape0707 5669f3ba46
Generate -fallback variant of boot entries for systemd-boot (#1583)
* Generate -fallback variant of boot entries for systemd-boot

---------

Co-authored-by: Anton Hvornum <anton@hvornum.se>
2023-03-10 11:50:24 +01:00
Murphy 6c87996201
Add sector unit (#1668) 2023-03-10 10:45:48 +01:00
bd-g 114e3626e2
Sway profile - select seat (#1661)
* sway profile choose seat
2023-03-10 10:17:19 +01:00