Anton Hvornum
5df69abfee
Stripped down the default zram configuration for zram-generator
2021-11-05 21:41:19 +01:00
Anton Hvornum
0067e34970
Merged latest master
2021-11-05 21:37:40 +01:00
Anton Hvornum
bf52588926
Merged in master changes
2021-11-05 17:29:53 +01:00
Anton Hvornum
37c40b8894
Fix import systemd.Boot
2021-11-05 17:17:18 +01:00
Anton Hvornum
4f4842f6bf
Added more information to the NTP log line.
2021-11-05 17:05:20 +01:00
Anton Hvornum
93efce92a9
Renamed the ntp function, as it doesn't install/enable ntp any longer. Even tho it uses the NTP protocol.
2021-11-05 17:03:07 +01:00
Anton Hvornum
2f677e2e86
Merge branch 'master' of github.com:archlinux/archinstall into torxed-fix-682
2021-11-05 16:56:56 +01:00
Anton Hvornum
2fcd8198b2
Cleaned up all flake8 issues/warnings. Did some code cleaning as well, mostly how we called things in guided.py but also some SysCommand calls
2021-11-05 16:27:01 +01:00
Anton Hvornum
aa1afdbeb0
flake8 fix, trailing semicolon
2021-11-02 09:30:38 +00:00
Anton Hvornum
7e85002dcb
Made sure there's a default config that's 'sane'
2021-11-02 09:29:28 +00:00
Anton Hvornum
d7449cc887
Removed pacstrap of ntpd as it's redundant. Also enabled the systemd-timesyncd service before running a command against it.
2021-11-02 09:23:02 +00:00
Anton Hvornum
0d80eba219
Changed from ntpd service to systemd-timesyncd.
2021-11-02 09:21:24 +00:00
Anton Hvornum
b3aba8d855
Improved run_as for installation.arch_chroot()
2021-11-01 10:59:51 +00:00
Anton Hvornum
9bc46a3eb6
Adding in enabling of zram service
2021-11-01 10:08:53 +00:00
Anton Hvornum
b4eb8557f5
Adding support for swap on zram
2021-11-01 09:59:32 +00:00
Anton Hvornum
e6de28287d
Wrong lib import path
2021-10-30 16:29:52 +02:00
Anton Hvornum
c4f688ce4c
Added some error handling to mount points not getting mounted properly.
2021-10-30 16:28:55 +02:00
Anton Hvornum
76dc426a0f
Added creating and mounting of subvolume structure for BTRFS.
2021-10-30 11:00:22 +02:00
Anton Hvornum
e21cf77e77
Removing /tmp from fstab
...
Since systemd takes care of mounting /tmp as a tmpt, there's no point in having a manual entry in fstab.
2021-09-17 23:52:10 +02: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
51565314b4
Merged in master.
2021-09-06 14:40:05 +00: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
d76760b45f
Removed old safety logics for partitions. Partitions will now always be formatted when .format() is called on them. The safety now lay in the code parsing the declerative partition layouts. Also added the encrypt/mount logic for encrypted partitions, which by default will be unencrypted unless a password is specified.
2021-06-13 14:25:07 +02:00
Anton Hvornum
9b6d7021a8
This fixes https://github.com/archlinux/archinstall/pull/426#discussion_r650372664
2021-06-13 10:37:30 +02:00
Anton Hvornum
24476ac1f6
Made it so that the .partitions property of Install() fetches from live data, rather than storing and caching partitions on initation. Since it now supports mounting a partition layout given by external usage.
2021-06-11 17:22:20 +02:00
Anton Hvornum
0a8c061ab4
Fixed format detection on commands, should be using exit codes instead?
2021-06-10 21:00:33 +02:00
Dylan Taylor
dcf178c7e8
Add some safeguards to create directories before writing files
2021-06-03 07:20:16 -04:00
Dylan M. Taylor
ec2b00c117
Remove comment that no longer applies
2021-05-31 19:45:49 -04:00
Anton Hvornum
62c22f78b1
Moved return logic to not abort the iteration of kernels.
2021-05-31 12:26:49 +02:00
Anton Hvornum
3006e5b4c3
Creating multiple boot configs, based on the selected kernels. Not 100% sure both initramfs and vmlinuz will have the trailing definitions, but made both {kernel}
2021-05-31 11:15:01 +02:00
Anton Hvornum
baca0cc514
Creating PR
2021-05-31 10:09:03 +02:00
Anton Hvornum
7b1096bfa6
Added a number of on_<event> hooks for different stages of the installation.
2021-05-24 14:59:34 +02:00
Anton Hvornum
9b0de26c67
Syncing in latest changes from master
2021-05-24 12:34:32 +02:00
Anton Hvornum
7daaf1143f
Fixes #489
2021-05-23 14:18:49 +02:00
Anton Hvornum
43792cd7f3
Spelling error
2021-05-23 11:37:51 +02:00
advaithm
439abc4402
fixed bootloader flag not being set
2021-05-22 18:18:05 +05:30
Anton Hvornum
49e6cbdc54
Reworking SysCommand & Moving to localectl for locale related activities
...
* Moving to `localectl` rather than local file manipulation *(both for listing locales and setting them)*.
* Swapped `loadkeys` for localectl.
* Renamed `main` to `maim` in awesome profile.
* Created `archinstall.Boot(<installation>)` which spawns a `systemd-nspawn` container against the installation target.
* Exposing systemd.py's internals to archinstall global scope.
* Re-worked `SysCommand` completely, it's now a wrapper for `SysCommandWorker` which supports interacting with the process in a different way. `SysCommand` should behave just like the old one, for backwards compatibility reasons. This fixes #68 and #69 .
* `SysCommand()` now has a `.decode()` function that defaults to `UTF-8`.
* Adding back peak_output=True to pacstrap.
Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
Co-authored-by: Dylan Taylor <dylan@dylanmtaylor.com>
2021-05-19 16:45:13 +02:00
Dylan M. Taylor
596c068f9d
Remove unreachable code
2021-05-18 08:32:30 -04:00
Anton Hvornum
e0561641f6
Converted from subprocess.check_output() to SysCommand() to hide cpu_vendor() output.
2021-05-18 00:21:48 +02:00
Anton Hvornum
e23fffe288
Reverted 2afc317. Using Path().unlink() instead on ucode if they exist.
2021-05-17 21:59:42 +02:00
Anton Hvornum
2afc31715e
Adding a pacman --overwrite declaration for ucodes.
2021-05-17 21:27:31 +02:00
Dylan Taylor
1796bbb918
Perform refactoring to PEP 8 naming conventions
2021-05-15 17:50:28 -04:00
Dylan Taylor
96a48664e2
Fix mutable default arguments
...
https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments
2021-05-15 15:24:34 -04:00
Dylan Taylor
f7642786c9
Remove some redundant parenthesis
2021-05-15 15:18:46 -04:00
Dylan Taylor
126c7ebfca
More formatting fixes to satisfy PEP 8
2021-05-15 15:04:39 -04:00
Dylan Taylor
a0cbb31d3e
f-string fixes
2021-05-15 14:29:24 -04:00
Dylan Taylor
3b20adb7d2
Whitespace changes
2021-05-15 13:59:37 -04:00