Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/installer.py
AgeCommit message (Collapse)Author
2021-09-06Merged in master.Anton Hvornum
2021-07-07Fix encryption + grub both in UEFI and BIOS systems.Hamad Al Marri
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-06-13Removed old safety logics for partitions. Partitions will now always be ↵Anton Hvornum
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-13This fixes ↵Anton Hvornum
https://github.com/archlinux/archinstall/pull/426#discussion_r650372664
2021-06-11Made it so that the .partitions property of Install() fetches from live ↵Anton Hvornum
data, rather than storing and caching partitions on initation. Since it now supports mounting a partition layout given by external usage.
2021-06-10Fixed format detection on commands, should be using exit codes instead?Anton Hvornum
2021-06-03Add some safeguards to create directories before writing filesDylan Taylor
2021-05-31Remove comment that no longer appliesDylan M. Taylor
2021-05-31Moved return logic to not abort the iteration of kernels.Anton Hvornum
2021-05-31Creating multiple boot configs, based on the selected kernels. Not 100% sure ↵Anton Hvornum
both initramfs and vmlinuz will have the trailing definitions, but made both {kernel}
2021-05-31Creating PRAnton Hvornum
2021-05-24Added a number of on_<event> hooks for different stages of the installation.Anton Hvornum
2021-05-24Syncing in latest changes from masterAnton Hvornum
2021-05-23Fixes #489Anton Hvornum
2021-05-23Spelling errorAnton Hvornum
2021-05-22fixed bootloader flag not being setadvaithm
2021-05-19Reworking SysCommand & Moving to localectl for locale related activitiesAnton Hvornum
* 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-18Remove unreachable codeDylan M. Taylor
2021-05-18Converted from subprocess.check_output() to SysCommand() to hide ↵Anton Hvornum
cpu_vendor() output.
2021-05-17Reverted 2afc317. Using Path().unlink() instead on ucode if they exist.Anton Hvornum
2021-05-17Adding a pacman --overwrite declaration for ucodes.Anton Hvornum
2021-05-15Perform refactoring to PEP 8 naming conventionsDylan Taylor
2021-05-15Fix mutable default argumentsDylan Taylor
https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments
2021-05-15Remove some redundant parenthesisDylan Taylor
2021-05-15More formatting fixes to satisfy PEP 8Dylan Taylor
2021-05-15f-string fixesDylan Taylor
2021-05-15Whitespace changesDylan Taylor
2021-05-15Remove unnecessary parenthesisDylan Taylor
2021-05-15Fix partition -> part suggestion by TorxedDylan Taylor
2021-05-15fix installer.py inconsistent tabs/spaces errorDylan Taylor
2021-05-15Some additional formattingDylan Taylor
2021-05-15Many more manual changesDylan Taylor
2021-05-14Fix microcode not getting added to base_packages before installDylan M. Taylor
Update installer.py
2021-05-14Adding a fallback systemd-boot install if writing variables failed.Anton Hvornum
2021-05-14Adding in a default timeout to systemd-boot, but only if no other timeout ↵Anton Hvornum
was specified. Also fixes a regression bug with line endings in the loader configuration.
2021-05-14Merge branch 'master' of github.com:archlinux/archinstall into torxed-fix-350Anton Hvornum
2021-05-14Merge branch 'master' of github.com:archlinux/archinstall into ↵Anton Hvornum
torxed-kernel-params
2021-05-12Merge branch 'master' of github.com:Torxed/archinstall into torxed-fix-350Anton Hvornum
2021-05-12Replaced the magic __builtin__ global variable. This should fix mypy ↵Anton Hvornum
complaints while still retaining the same functionality, kinda. It's less automatic but it's also less of dark magic, which makes sense for anyone but me.
2021-05-01Fix syntax errorbuilder_247
2021-04-30Adding support for kernel paramsAnton Hvornum
2021-04-30Moved/Created mkinitcpio funcAnton Hvornum
2021-04-30Moved mkinitcpio variablesAnton Hvornum
They now live as a installation-session variable. Not just minimal installation.
2021-04-29Change how efibootmgr is installedDylan M. Taylor
Make changes suggested by Torxed
2021-04-29Partially revert hasUEFI grub/efibootmgr change to fix GRUBDylan M. Taylor
2021-04-29Adding on_pacstrap hook for installation. As well as a plugins listing that ↵Anton Hvornum
plugins can hook in to in order to be called during specific on_<event> calls.
2021-04-29Added a postgresql application profile. (#383)Anton Hvornum
* Added a postgres application profile. Also introducing runas to the arch_chroot of the installation, to run commands as emulated users. This is highly WIP at the moment. * Fixing top-level-listing of profiles. As well as testing some postgres installation steps. * Removed dupe functions. * Added safety check in case a comment mentions the top level profile thing. * Patching namespace corruption. * Avoiding runtime collision due to installation not being initiated yet. * Allow for parameterization of filesystem in guided. Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-29Cleaning up packages. (#374)Anton Hvornum
* Cleaning up packages. installer now relies on __packages__ definition. Which will work with external libs to more easily gather packages used by installer and profiles. * Added back the logic for the log message, where we inform if we're adding the boot loader to root or boot. * Added __package__ definition to profiles and the installer. These packages can be used as an indication from outside libraries of what could *possibly* be installed. For instance an offline-tool could source these, it would source more than it needed to, but it would give a quick rundown of what might be needed. * Removed import of __base__packages__ as it's now just __packages__ after a lot of stream-lining. * Explosion misspelling. Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-29Fixes #350 hopefully. This reverts an old hotfix to make systemd-boot work ↵Anton Hvornum
with dualboot variables. This **NEEDS** to be tested together with a Windows installation dual-boot setup, because this is where variable writing caused issues before.
2021-04-28removed pdbadvaithm