Commit Graph

929 Commits

Author SHA1 Message Date
Anton Hvornum 7d3f2b6f29 Added a 'hidden' variable called --disk-sleep for delaying disk partition up time before continuing after a format. This is an ugly hack to get around some disk issues, for now. 2021-09-14 14:07:50 +00:00
Anton Hvornum 6d2a2f327c Moved --noconfirm at the end of the pacstrap command to get piped properly to pacman inside pacstrap. 2021-09-14 11:47:16 +00:00
Anton Hvornum e0f00ad1fe Merging latest changes 2021-09-13 14:56:03 +00:00
Anton Hvornum 168379d43d Added --noconfirm to pacstrap and increased logging verbosity when packages fail, and adding a exception so that the installation doesn't continue silently. This causes too much confusion (even tho I liked the idea that people could recover the missing parts without having to re-run the installer for subsequent steps. 2021-09-13 14:55:09 +00:00
Anton Hvornum 995edaf316 Removed legacy need to add_bootloader
`add_bootloader` no longer needs to have a harddrive given as a argument. It will (and should) auto-detect what's mounted in the `self.target` (aka mountpoint) of the installation.
2021-09-12 15:42:13 +02:00
Anton Hvornum 009dc0ab37
Merge pull request #623 from conqp/clean_hardware_imports
Remove unused import of json
2021-09-06 18:01:46 +02:00
Anton Hvornum 6aa028d29d
Merge pull request #626 from conqp/refactor_meminfo
Refactor meminfo() to allow direct key access
2021-09-06 18:01:31 +02:00
Anton Hvornum 6ead767907
Merge pull request #625 from conqp/fix_tab_indentation
Fix indentation with tabs instead of spaces
2021-09-06 17:59:43 +02:00
Richard Neumann 712e5d4a70 Fix indentation with tabs instead of spaces 2021-09-06 17:15:40 +02:00
Richard Neumann 0a8fe402a4 Refactor meminfo() to allow direct key access 2021-09-06 17:13:26 +02:00
Richard Neumann 93496087e5 Remove unused import of json 2021-09-06 16:52:41 +02:00
Anton Hvornum e10daf4c57 Merged in master 2021-09-06 14:41:29 +00:00
Anton Hvornum 51565314b4 Merged in master. 2021-09-06 14:40:05 +00:00
Richard Neumann 8841e209ee Refactor cpu_model() to use cpuinfo() 2021-09-06 16:12:53 +02:00
Richard Neumann 086dcc3325 Refactor cpu_vendor() to use cpuinfo() 2021-09-06 16:12:16 +02:00
Anton Hvornum 1030bd19c5
Merge branch 'master' into native_cpu_detection 2021-09-06 15:54:52 +02:00
Anton Hvornum 355f502d80
Merge pull request #610 from luckspt/patch-2
Typo
2021-09-06 15:45:53 +02:00
Anton Hvornum bf18260510
Merge pull request #605 from CYPT71/patch-1
Update hardware.py
2021-09-06 15:42:15 +02:00
Anton Hvornum 8d7ccde162
Added exception handling to check_output
I tweaked the optimized return of check_output. Worth mentioning that `check_output()` will raise an exception `subprocess.CalledProcessError: Command 'lscpu | grep AMD' returned non-zero exit status 1.`.
2021-09-06 13:40:45 +00:00
Anton Hvornum 5fe752cf72
No need for try/catch any longer.
The old behavior of SysCommand was that exit codes raised an exception, which needed to be handled by each individual caller. We now utilize `.exit_code` instead to manually detect faulty commands and raise exceptions where needed.
2021-09-06 13:22:53 +00:00
Anton Hvornum 48fd68124a
Merge branch 'master' into master 2021-09-06 15:01:37 +02:00
Anton Hvornum 05c923524b
Merge pull request #600 from monosans/comprehension
Replace for loops with comprehensions
2021-09-06 14:26:30 +02:00
Anton Hvornum 025dc83194 Corrected some minor modifications mentioned in #595 as well as merged in latest changes from master. For future PR's do create a patch-branch for upstream patches to avoid changes to your local repo. 2021-09-06 12:22:57 +00:00
Anton Hvornum 8a0a9b16e1 Merge branch 'master' of github.com:archlinux/archinstall into torxed-rework-partitioning 2021-09-04 20:58:05 +02:00
Anton Hvornum e88ac430f2
Fixed edge case where size of disks could be exactly 40GB and a /home would never be created on single devices. 2021-09-04 20:54:25 +02:00
Anton Hvornum 278ded8e74
Added a PARTUUID -> parted index, this in order to properly set the boot flag on the correct partition. Perhaps there's a smarter way. I suspect parted can operate on a given partition ID, but haven't found the docs for it yet. 2021-09-04 19:09:16 +02:00
Anton Hvornum 429006fe4b
Simplified lambda and made it filter out non relevant disks for the selection process. 2021-09-04 17:03:52 +02:00
Anton Hvornum 1814a19d6a
Fixed filtering if largest disk selection 2021-09-04 16:39:15 +02:00
Richard Neumann a5a56728f1 Remove excess newline 2021-08-20 18:16:45 +02:00
Richard Neumann 61947ab944 Rewrite CPU vendor detection functions
Use cpuinfo() function rather than a subprocess.
2021-08-20 18:16:00 +02:00
Richard Neumann b8ede1b333 Add cpuinfo() 2021-08-20 18:13:23 +02:00
Anton Hvornum 81e52bc3ff
Reworking logic that selects / and /home for multi-disk configurations. Also added some more debugging 2021-08-18 08:17:50 +02:00
Anton Hvornum 59c366da35
Fixed a prompt error in one of the parted calls. Also started on a more reliable size-conversion that isn't limited to Gigabytes in free_space(). 2021-08-17 20:23:20 +02:00
Lucas Pinto 64e6b7b456
Typo
Fix a tiny typo
2021-07-28 01:35:26 +01:00
CYPT71 bbce3aa26a
Update hardware.py
Rewrite some function 

if condition is True then return true else return false, transform in return condition directly 

Also I don't understand why we need a try/except at line 151 and why we not write return condition ??
2021-07-22 11:47:56 +02:00
j-james b0aa5dcbbb Mention GNOME and KDE's soft dependency on NetworkManager in the install 2021-07-19 16:09:44 -07:00
Yash Tripathi b60e8dfd10 changed dry_run to dry-run 2021-07-18 21:45:24 +05:30
Yash Tripathi b1998ddebf fix for #602, running mklabel before formatting 2021-07-18 17:15:01 +05:30
Yash Tripathi d55b1786c5 created load_config() to load configuration 2021-07-18 01:28:41 +05:30
monosans 3d4f58a04e Replace for loops with comprehensions 2021-07-16 10:42:29 +03:00
Hamad Al Marri 51eb05691a Fix encryption + grub both in UEFI and BIOS systems.
We need to have two partitions in BIOS one for boot (grub)
and the other for root (/). The format of the boot partition
is ext2 (so it is added).

If disk is chosen to be encrypted, `then /etc/default/grub` is edited
as the followings: https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system#Configuring_GRUB_2

Issue: https://github.com/archlinux/archinstall/issues/586

This work is done while working on CachyOS which is Arch based and
it is using customized archinstaller.

To test these changes you can try CachyOS installer which supports
encrypted disk with grub (https://wiki.cachyos.org/).

Hamad
2021-07-07 18:38:55 +03:00
Anton Hvornum a53ee624ef Removed debugging 2021-07-04 15:15:21 +02:00
Anton Hvornum f2b0fcc652 Added a filesystem check when marking for formatting, this should ensure that encrypted volumes get a proper filesystem without having to go through an extra step of selecting filesystem. 2021-07-04 15:15:07 +02:00
Anton Hvornum 57bad26553 Added options to mark/unmark partitions for formatting (useful when re-using partitions, and fine tune which data to save and which to wipe). Setting a desired filesystem for a partition (both new ones and the ones being re-used). 2021-07-03 15:10:23 +02:00
Anton Hvornum 51f2eca60e Saving partitioning layout in a layout file (JSON format) 2021-07-03 14:27:49 +02:00
Anton Hvornum e965eaf546 Missing .format() on 'use entire disk' step 2021-07-03 14:00:03 +02:00
Anton Hvornum 20e759d4cc Added more detail to BlockDevice.__repr__ 2021-06-15 11:51:29 +02:00
Anton Hvornum 0079f3d95c Added fs-type and formatting on encrypted partitions that haven't been given a fs-type prior when re-using partitions. 2021-06-15 10:55:36 +02:00
Anton Hvornum 6cf50618b1 Change of variable 2021-06-14 21:37:34 +02:00
Anton Hvornum fa8862a460 moved valid_parted_position to disk. And made it handle float numbers. 2021-06-14 19:04:51 +02:00