Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
AgeCommit message (Collapse)Author
2021-11-18Swapped .get() statement for a verification. This ensures Partition().uuid ↵Anton Hvornum
doesn't immediately return None
2021-11-18Increased disk delays by 100% (for unsuccessful operations), successful ↵Anton Hvornum
should still be quick. (#730) Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-11-17Fixing broken encryption support in GRUB (#724)Anton Hvornum
* Added multiple `partprobe` calls and added a `.partprobe()` function on partitions, filesystem and blockdevice. * Adding retry attempts to all UUID related operations tied to the boot process * Tweaked logging for mounting and disk related operations * Removed potential SysCall exception disruptor causing exceptions to go by unnoticed * Increased the start position from 1MiB to 5MiB of /boot partition * Optimized the GRUB installation & config code * Improved Partition().uuid to never return None. Instead it will raise an exception if it can't get a PARTUUID within X retries with Y delay per attempt. * Increased sleep timer for partition uuid retrieval, because even with a 3 second sleep it wasn't long enough even on fast devices. * Make GRUB install to /dev/sda instead of /dev/sda1. * Added 10 retries for retreiving PARTUUID with a one second sleep. Instead of increasing the sleep simply add more retries until we find a good balance on slower disks.
2021-11-17Merge PR #716 - Support for efistub-bootloader (API only)Anton Hvornum
Add EFISTUB bootloader support through config/api calls using: ```json { "bootloader": "efistub", "kernels": [ "linux", "linux-lts" ] } ```
2021-11-16Clarification on boot entries when using multiple kernelsAnton Hvornum
2021-11-16Safe dictionary retrievalAnton Hvornum
2021-11-16Merge PR #714 - Fix empty drives causing issuesAnton Hvornum
* Removed the GPT vs MBR lookup on __enter__ * Removed redundant `boot_partition` lookup during GRUB configuration
2021-11-16Accidental stdout redirect into 1Anton Hvornum
2021-11-16removed redundant importAnton Hvornum
2021-11-16Removed redundant boot-partition retrieval.Anton Hvornum
2021-11-16Linting issuesAnton Hvornum
2021-11-16Added more logging for debugging purposesAnton Hvornum
2021-11-16Improved error message when failing to detect mount information.Anton Hvornum
2021-11-16Fix unknown-ucode message for EFISTUB bootloaderEttore Forigo
2021-11-15Fix boot partition detection for EFISTUB bootloaderEttore Forigo
2021-11-14Add EFISTUB bootloader supportEttore Forigo
2021-11-13Adding in --mount-point argument, which overrides storage['MOUNT_POINT']Anton Hvornum
2021-11-12Removed the GPT vs MBR lookup on __enter__ as it's no longer necessary to ↵Anton Hvornum
validate this on instance creation. load_layout() Uses this only to detect what partition table format it should use when wiping the drive. Other than that we only check if MBR and part numbers are > 3, that's the only use of this variable at this moment.
2021-11-11Converted partprobe call into a function.Anton Hvornum
2021-11-11Dealt with exception in partitionAnton Hvornum
2021-11-11Added a hard exception for when mount information can't be detectedAnton Hvornum
2021-11-11Added more partprobe'sAnton Hvornum
2021-11-11Added more debug output for get_mount_info()Anton Hvornum
2021-11-11Improved partition.uuid handling of lsblk informationAnton Hvornum
2021-11-11Tweaked partitions usage in blockdeviceAnton Hvornum
2021-11-11Tweaked partitions usage in blockdeviceAnton Hvornum
2021-11-11Added more debugging (some duplicate, but that's fine)Anton Hvornum
2021-11-11Adding in debuggingAnton Hvornum
2021-11-11elif -> ifAnton Hvornum
2021-11-11Removed legacy code related to disk wiping. Also added in partprobe in ↵Anton Hvornum
strategic places (not sure this is enough, will have to test)
2021-11-11Merged PR #707 - Fixes password leakage to terminalAnton Hvornum
Created a new JSON serializer called `UNSAFE_JSON` that will serialize everything, including sensitive information. And `JSON` which is the default up to this point now safely ignores any sensitive information in dictionaries marked with `!`, for instance `{"!password" : "mypassword"}` will be omitted from any output.
2021-11-11Modified last few places where password gets set.Anton Hvornum
2021-11-10Fixed linting issueAnton Hvornum
2021-11-10Solves issue #689. Attribute Error.'None type' has no attribute 'format' ...Werner Llácer
It seems the system does not syncronus update its internal information after a partitioning. Two places are affected. Directly on filesystem.add_partition (the uuid of the new partition isn't available after the parted command) and blockdevice.get_partition, where the list of partitions for the iterator might not be available in the query. The patch places both sections under controlled loops, giving the system the chance to update the information. Should be more controlled via application parameters
2021-11-09Changed partition password to !passwordAnton Hvornum
And also added a check to grab !encryption-password if no partition-specific password was given.
2021-11-09Forgot to change the cls=JSON inside the recursive call of UNSAFE_JSONAnton Hvornum
2021-11-09Adding in storage of user supplied credentials. This separates credentials ↵Anton Hvornum
from user_configuration.json into user_credentials.json. As well as the JSON serializer will omit the credentials from the user_configuration.json by detecting ! in the dictionary keys (which is why they are important). UNSAFE_JSON will leave those keys in there, good for storing credentials in a separate file."
2021-11-09Adding a exception to filesystem.parted() if it fails. We can't let these go ↵Anton Hvornum
by unoticed
2021-11-09Linting fixAnton Hvornum
2021-11-09Merge pull request #695 from wllacer/masterAnton Hvornum
Solves issue #674
2021-11-08Fix user_interaction import as well - this is also in the parent directory.Dylan M. Taylor
2021-11-08If using subvolumes, make root partition 100% instead of using homeDylan M. Taylor
2021-11-08Fix luks import so that encryption works correctlyDylan M. Taylor
2021-11-08Followup to the previous one. Output of size function is rounded to the ↵Werner Llácer
first decimal so output doesn't look too cluttered
2021-11-08Solves issue #674Werner Llácer
We turned the size query of the devices to byte mode in lsblk (lsblk -b) It avoids problems with the localized output of the lsblk utility.
2021-11-07Fixes #690 by Clearing storage['active_boot'] if shutdown was successful (#691)Anton Hvornum
* Clear storage variable if shutdown was successful * Adding shutdown monitoring and debug output. * It seams systemd-run gets a connection reset from running 'shutdown now', but in a good way - so it doesn't raise any exceptions. Or at least that's what it looks like.
2021-11-06Revert "Added a delay on systemd-nspawn", did not helpAnton Hvornum
This reverts commit d9aa7e6b34a969b46f97a24b9387d215605747c8.
2021-11-06Added a delay on systemd-nspawnAnton Hvornum
This to avoid "Transport endpoint is not connected"
2021-11-06Merge branch 'master' of https://github.com/archlinux/archinstall into ↵Anton Hvornum
torxed-fix-109
2021-11-06Added mimic function for file operationsAnton Hvornum