Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk.py
AgeCommit message (Collapse)Author
2021-06-03Attempt to avoid crashing when encountering swap partitions in has_content()Dylan M. Taylor
2021-05-30Fix typo in error msgCsonka Mihaly
2021-05-19Added support for getting configuration from a config file (#364)Yash Tripathi
* added support for ingesting config * fixed condition to check key in dictionary * Removed redundant code, profile and desktop keys are now optional * Added base-config.json and support for pulling credentials from .env * added base config file and env file for users credentials * added silent install switch * added python-dotenv as a dependency * Updated Readme to include argparse changes as well as config ingestion * Updated Readme to include argparse changes as well as config ingestion * fixed typo in pyproject.toml * Replaced the magic __builtin__ global variable. This should fix mypy 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. * Fixes string index error. * Quotation error. * fixed initializing --script argument * added python-dotenv as a dependency * Installation can't be silent if config is not passed * fixed silent install help * fixed condition for ask_user_questions * reverted to creating profile object properly * Cleaned up and incorporated suggestions * added Profile import * added condition if Profile is null * fixed condition * updated parsing vars from argparse * removed loading users from .env * Reworking SysCommand & Moving to localectl for locale related activities (#4) * 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> Co-authored-by: Anton Hvornum <anton@hvornum.se> Co-authored-by: Anton Hvornum <anton.feeds@gmail.com> * fixed indent * removed redundant import * removed duplicate import * removed duplicate import Co-authored-by: Anton Hvornum <anton.feeds@gmail.com> Co-authored-by: Anton Hvornum <anton@hvornum.se> Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
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-15Fix some variable shadowing issuesDylan Taylor
2021-05-15Perform refactoring to PEP 8 naming conventionsDylan Taylor
2021-05-15Merge branch 'lxqt-lightdm' into formatting2Dylan Taylor
2021-05-15Fix missing Optional importDylan M. Taylor
2021-05-15Merge pull request #450 from charlesvdv/masterAnton Hvornum
propagate options when mounting a partition
2021-05-15Remove some redundant parenthesisDylan Taylor
2021-05-15More formatting fixes to satisfy PEP 8Dylan Taylor
2021-05-15Fix E101: mix of spaces and tabsDylan Taylor
2021-05-15propagate options when mounting a partitionCharles Vandevoorde
2021-05-15f-string fixesDylan Taylor
2021-05-15Whitespace changesDylan Taylor
2021-05-15Cleanup imports and disk.py a bit moreDylan Taylor
2021-05-15Many more manual changesDylan Taylor
2021-05-12some type hint fixes and a bad catch fixadvaithm
2021-05-01Merge branch 'master' of https://github.com/archlinux/archinstall into ↵Anton Hvornum
torxed-partitioning
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-28Added a mini curses class and generic-multi-select (#362)Anton Hvornum
* Added a mini curses class. It can do some simple tricks to iterate over menu options and indicate which ones are chosen using generic_multi_select(). * Include the default parameter if set. * Modified 'select_kernel()' to use the new multi-select. * Sneaky character got in. * removed some debugging * removed some debugging * Spelling error * Adding error handling and loop support. * Enforce that 'default' is always selected if no other option is selected. * Fixed backspace issues and ghosting. Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-27Moving away from custom log levels, to something that's well defined. (#360)Anton Hvornum
* Moving away from custom log levels, to something that's well defined. * Added backward compability to log() as well. * Added an option to force log messages out on screen even if the level is below the log level threashold. * Added force log messages when wrong notation is used. * Added some more length to the deprecated message * Swapped all log levels to use logging.<level> instead. Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-16Adding debug data to the log. It will now contain lsblk before and after the ↵Anton Hvornum
installation to help with detecting any potential information. Also removed a traceback log that was for debugging purposes.
2021-04-12Merge branch 'master' into torxed-v2.2.0Anton Hvornum
2021-04-10Show size in partition string representationDylan Taylor
2021-04-10Modified encrypted partitions to use partuuid for now.Anton Hvornum
2021-04-09Removed some debugging.Anton Hvornum
2021-04-09Attempting to correct some inconsitencies in disk-parent reporting.Anton Hvornum
2021-04-09Attempting to correct some inconsitencies in disk-parent reporting.Anton Hvornum
2021-04-09Attempting to correct some inconsitencies in disk-parent reporting.Anton Hvornum
2021-04-09Attempting to fix auto-detection of encrypted drives. So that #124 can ↵Anton Hvornum
perform reverse detection on partitions and detect encryption.
2021-04-09Attempting default value None for block device to partition.Anton Hvornum
2021-04-09Wrong variable nameAnton Hvornum
2021-04-09Added disk helper function get_partitions_in_use(). Which returns which ↵Anton Hvornum
partions are being used at a given mount location, including children.
2021-04-09Wrong variable.Anton Hvornum
2021-04-09Made sure the mount target path exists before mounting.Anton Hvornum
2021-04-07Merging changes from master into feature branch to avoid future conflics.Anton Hvornum
2021-04-04Fixes: AttributeError: 'BlockDevice' object has no attribute 'keep_partitions'Anton Hvornum
2021-04-04encryption_passwed -> encryption_passwordAnton Hvornum
2021-04-04Fix misspellingsRafael Fontenelle
2021-04-04Merging in latest changes from master.Anton Hvornum
2021-04-03Forgot option PARTUUID to lsblkAnton Hvornum
2021-04-03Merging in latest changes from master.Anton Hvornum
2021-04-03This should fix #151, by using lsblk instead of /dev/disk/by-partuuid. It ↵Anton Hvornum
also cleaned up the installer code quite a bit during the bootloader installation. Will do the same for encrypted drives later on by implementing UUID on a BlockDevice (disk) level.
2021-04-03This should correct #152. When a newly /boot partition is created with no ↵Anton Hvornum
content or incorrect filesystem (meaning, no file system yet), the .has_content() call will crash due to incorrect fstype. Which means we should be able to skip the check and assume it's safe to format. Because there's no way (?) other OS:es can store something on the boot partition on a broken FS.
2021-04-03Converted the raise exception into a log. Whenever blockdevice is unsure of ↵Anton Hvornum
what type it's working on, it will not log it as a debug message.
2021-04-03Removed a breaking change while fixing hardware raidsAnton Hvornum
2021-04-03This partially addresses #151. Which might require more than just the path ↵Anton Hvornum
being returned. As the blkid might not be correctly identifying it in the bootloader step. But we'll have to test and see.
2021-04-02Merge branch 'exec-args' of https://github.com/kpcyrd/archinstall into ↵Anton Hvornum
torxed-v2.2.0
2021-04-02Support passing commands as listskpcyrd