Commit Graph

2823 Commits

Author SHA1 Message Date
Anton Hvornum a63e8ae7f9
Torxed issue 1083 (#1090)
* Optimized a bunch of partprobe calls. Namely fixed sleep calls, added optional path to the general archinstall.partprobe() call. And fixed some error handling in a few places which should tell us where #1083 might be going wrong.

* Fixed some flake8 complaints

* Fixed sleep having a min() of 0.1 or given value.

* Fixed sleep having a correct range variable.

* Fixed sleep logic to use max() instead of min() as it will never use the higer sleep values otheride

* Added error handling to Partition().partprobe() as it would cause certain issues with USB disks. Also made Partition()._safe_uuid more safe by eliminating exceptions being raised.
2022-04-26 21:57:33 +02:00
Anton Hvornum 59c35df067
Optimized a bunch of partprobe calls. (#1088)
* Optimized a bunch of partprobe calls. Namely fixed sleep calls, added optional path to the general archinstall.partprobe() call. And fixed some error handling in a few places which should tell us where #1083 might be going wrong.

* Fixed some flake8 complaints

* Fixed sleep having a min() of 0.1 or given value.

* Fixed sleep having a correct range variable.

* Fixed sleep logic to use max() instead of min() as it will never use the higer sleep values otheride
2022-04-26 17:13:47 +02:00
Anton Hvornum eafbf49cdc
Adding back 'timedatectl set-ntp true' but with the condition of it being activated. This is because the default NTP value is set to True. And will subsequently never be triggered through the menu system. So we'll have to activate it (again) if set to True before installer starts. 2022-04-26 15:13:29 +02:00
Anton Hvornum 010f6eaf97
Added a NTP status check before processing to installation. (#1086) 2022-04-26 15:07:12 +02:00
Anton Hvornum 9a6e85fb46
Removed NTP by default. Instead, if NTP is selected or de-selected it will activate/de-activate ntp accordingly. 2022-04-26 14:49:03 +02:00
Anton Hvornum c095eb56d8
Added a try-rerun-except block to grub-install (#1085)
* Added a try-rerun-except block to grub-install first with --removable and then without if it fails. I have a sneaky suspicion that it's due to USB drives being the destination medium, but I cannot confirm yet. I've also added peak_output=True and --debug to GRUB so we can catch the issues in the future.

* Fixed flake8 complaint
2022-04-26 14:13:33 +02:00
Anton Hvornum 12b5e2e4e9
Adding compression as an option (#1084)
* Adding compression as an option

* Ignore 'misaligned' ending parenthathese

* Moved the 'mark compressed' logic into the sub block within manual disk operations.

* Fixed flake8 complaints

* Muting a complextion warning on manage_new_and_existing_partitions(). It is too complex, but not something that we'll bother with for v2.4.0. As this whole function could be replaced with a new and improved menu system split into tasks rather than one huge if/else.
2022-04-26 13:17:40 +02:00
Anton Hvornum 1bce561a0c
Bumped up default timout, as 5 seconds is not enough for some platforms. 2022-04-25 10:20:00 +02:00
Anton Hvornum 44727e64ea
Require superuser or root password fixed. (#1082) 2022-04-25 09:58:36 +02:00
Anton Hvornum f10d8abb13
Set a 'default' argument for audio and removed it as a requirement to continue. (#1081) 2022-04-25 09:29:12 +02:00
Werner Llácer a14604a1b6
Created a routine to check if a partition includes a certain mountpoint (#1069)
For a btrfs volume with a subvolume to be mounted on /, we will not generate a keyfile anymore
2022-04-25 08:57:49 +02:00
Werner Llácer 15c594bcba
When using disk_layout files but not config file, we autofill the harddrives argument (#1067) 2022-04-25 08:41:20 +02:00
Werner Llácer 99dfa7368d
We make the last action available beyond the run loop, so we can check why run was exited (#1066) 2022-04-25 08:34:52 +02:00
Daniel bbedc0bb19
Flexible order of menu options (#1078)
* Allow custom ordering of the menu entries

* Update

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-04-22 13:24:43 +02:00
Daniel 477b5b120e
Support for multiple network interfaces (#1052)
* Support for multiple network interfaces

* Fix mypy

* Fix flake8

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-04-22 13:24:12 +02:00
Daniel 2529d6a5f5
Fix blockdevice key error (#1079)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-04-22 13:23:38 +02:00
godalming123 0604ed45c3
fix incorrect use of an (#1071) 2022-04-14 11:45:05 +02:00
Daniel 4f899e3866
Downstream new simple menu feature (#1055)
* Downstream new simple menu feature

* Fix flake8

* Update

* Fix flake8

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-04-12 11:46:55 +02:00
Anton Hvornum f644022e0c
This should address and resolve #587 (#1070)
* This should address and resolve #587

* Forgot one line from copying from local test script

Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2022-04-11 22:46:06 +02:00
Werner Llácer 57b16d5468
Partition.boot works now for GPT and MBR disks (issue #1061) (#1063) 2022-04-03 23:17:25 +02:00
j-james 656047163a
Rebase bspwm profile on master (#604) 2022-04-03 12:58:48 +02:00
Anton Hvornum 28c63b2354
Made build version dynamic as pointed out in https://github.com/pypa/build/issues/453 2022-03-29 11:22:36 +02:00
Anton Hvornum 7f0ccbe87e
Reverted mypy runner changes 2022-03-29 10:35:18 +02:00
Anton Hvornum c241d96982
Version bump to v2.4.0 RC2 2022-03-29 10:32:20 +02:00
Anton Hvornum af4b8a7251
Fixed flake8 2022-03-29 10:31:29 +02:00
Werner Llácer e0d723f9a0
Correct exit when no disk is selected and we don't wish to continue (#1049) 2022-03-29 10:25:18 +02:00
Anton Hvornum 02c715e224
Fixed an import of not yet loaded module 2022-03-28 17:04:28 +02:00
Anton Hvornum 77b9826ab1
Fixed an import of not yet loaded module 2022-03-28 17:04:02 +02:00
Anton Hvornum a61db89a7f
moved the ur language due to #1048 2022-03-28 16:55:11 +02:00
Anton Hvornum 34909aea57
Updating language file 2022-03-28 16:49:38 +02:00
Anton Hvornum 5504b9ac6b
Removed GlobalMenu from selection_menu.py as it's moved to it's own file. 2022-03-28 16:48:55 +02:00
Anton Hvornum a1ab6a5f8a
Updated locales 2022-03-28 16:46:23 +02:00
Anton Hvornum 609a380a15
Fixed an import of not yet loaded module 2022-03-28 16:43:11 +02:00
Anton Hvornum 500da432bf
Fixed an import of not yet loaded module 2022-03-28 16:42:09 +02:00
Anton Hvornum 66289c13d8
Fixed an import of not yet loaded module 2022-03-28 16:41:41 +02:00
Anton Hvornum 1bf6e20bde
moved GlobalMenu into lib/menu/global_menu.py instead 2022-03-28 16:41:03 +02:00
Anton Hvornum e873e30c39
Fixed an import of not yet loaded module 2022-03-28 16:13:26 +02:00
Anton Hvornum fe164a700c
Fixed an import of not yet loaded module 2022-03-28 16:08:05 +02:00
Anton Hvornum de80fdc153
Fixed an import of not yet loaded module 2022-03-28 16:04:24 +02:00
Anton Hvornum 6c71f42b47
Fixed an import of not yet loaded module 2022-03-28 16:01:55 +02:00
Anton Hvornum 5456920681
Added missing imports (#1046) 2022-03-28 15:04:14 +02:00
Anton Hvornum 77bfa10d53
Added error handling to fstab (#1045)
* Added error handling to fstab

* Checking the exit code for == 0
2022-03-28 14:43:33 +02:00
Daniel c92c448f29
Fix some mypy things (#1023)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Co-authored-by: Anton Hvornum <anton@hvornum.se>
2022-03-28 14:14:45 +02:00
Patrick Schneeweis c614b3ed55
Clarify prompt text when providing superusers. (#1044)
Co-authored-by: Anton Hvornum <anton@hvornum.se>
2022-03-28 14:00:34 +02:00
Farhan Ghani f2ad219d8e
added translation for urdu (#1043) 2022-03-28 13:57:04 +02:00
Werner Llácer 4b4473632d
Subvolume User Interface (#1032)
* 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-28 13:55:15 +02:00
Daniel 3dc0d957e8
Deflate user interactions (#1019)
* Deflate the user interactions file

* Fix flake8

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2022-03-28 13:49:05 +02:00
Werner Llácer e85c9b6531
Issues with Network Management and user management in menu (#1036)
* 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-28 13:44:10 +02:00
Anton Hvornum 69bd88a7f9
Version bump for release candidate of v2.4.0 RC1 2022-03-28 10:43:59 +02:00
Anton Hvornum 8d15683752
Made archinstall build reproducable when generating docs 2022-03-28 09:24:17 +02:00