Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
AgeCommit message (Collapse)Author
2021-11-05Merge branch 'master' of github.com:archlinux/archinstall into torxed-fix-682Anton Hvornum
2021-11-05Merge branch 'master' of github.com:archlinux/archinstall into torxed-fix-93Anton Hvornum
2021-11-05Just swapped quotation marks. Easier to copy paste into JSON syntax ↵Anton Hvornum
highlighting.
2021-11-05Merged PR #650 - flake8 fixes and tighteningAnton Hvornum
Tighten up flake8 tests used by GitHub Action lint_python
2021-11-05Ignoring flake8 on blockdevice.py.Anton Hvornum
2021-11-05Cleaned up all flake8 issues/warnings. Did some code cleaning as well, ↵Anton Hvornum
mostly how we called things in guided.py but also some SysCommand calls
2021-11-02Fix typosTheEvilSkeleton
2021-11-02flake8 fix, trailing semicolonAnton Hvornum
2021-11-02Made sure there's a default config that's 'sane'Anton Hvornum
2021-11-02Removed pacstrap of ntpd as it's redundant. Also enabled the ↵Anton Hvornum
systemd-timesyncd service before running a command against it.
2021-11-02Changed from ntpd service to systemd-timesyncd.Anton Hvornum
2021-11-01Add import for all_disksDidr
2021-11-01Fixed flake8 issues in networking, plugins and profiles.Anton Hvornum
2021-11-01Fixed general.py flake8 issues.Anton Hvornum
2021-10-30Adding support for passing arguments to .format()Anton Hvornum
This should enable people to use custom option arguments in their config files when scripting installations or using the API.
2021-10-30Merge branch 'master' of https://github.com/archlinux/archinstall into ↵Anton Hvornum
torxed-fix-93
2021-10-30Merging in parts of Master related to disk.pyAnton Hvornum
2021-10-30Adding error handling for paths and btrfs subvolume creation.Anton Hvornum
2021-10-30Failed to create directory structure on subvolume create. Only on subvolume ↵Anton Hvornum
mount. This fixes that.
2021-10-30Raising DiskError if subvolumes cannot be created.Anton Hvornum
2021-10-30Fixes tuple issueAnton Hvornum
2021-10-30Tweaked get_mount_info() and mount_subvolume(). mount info now returns the ↵Anton Hvornum
path it found after traversal. mount_subvolume will no longer assume installation.target is of pathlib.Path and converts it if it isn't.
2021-10-30Forgot to include {installation.target} in subvolume mountingAnton Hvornum
2021-10-30Added more logging (will change INFO to DEBUG later)Anton Hvornum
2021-10-30Wrong lib import pathAnton Hvornum
2021-10-30Added some error handling to mount points not getting mounted properly.Anton Hvornum
2021-10-30Enhanced get_mount_info() to recursively get the informationAnton Hvornum
2021-10-30Forgot an importAnton Hvornum
2021-10-30Added debugging to the btrfs functions.Anton Hvornum
2021-10-30Added creating and mounting of subvolume structure for BTRFS.Anton Hvornum
2021-10-27Finalized the create_subvolume and mount_subvolume functions. Remaining is ↵Anton Hvornum
to call these functions during the disk setup process to create the subvolumes and mount them in place, rather than doing the normal steps.
2021-10-27Merge pull request #666 from olekthunder/re_rank_mirrors_fixAnton Hvornum
Fix re_rank_mirrors
2021-10-27Merge pull request #672 from conqp/hardware_refactoringAnton Hvornum
Hardware refactoring
2021-10-22Forgot some imports that didn't show up on a static run without going ↵Anton Hvornum
through a few of the menu's
2021-10-22Forgot some imports that didn't show up on a static run without going ↵Anton Hvornum
through a few of the menu's
2021-10-22Forgot some imports that didn't show up on a static run without going ↵Anton Hvornum
through a few of the menu's
2021-10-22Removed the old disk.pyAnton Hvornum
2021-10-22Restructured disk.py into lib/disk/<splits>.py instead. Shouldn't be any ↵Anton Hvornum
broken links as we expose all the functions through __init__.py - but you never know so I'll keep an eye for issues with this.
2021-10-22use_mirrors: return None instead of TrueOleksandr Zinkevych
2021-10-21Improve type hintRichard Neumann
2021-10-21Generalize CPU vendor detectionRichard Neumann
Implement has_amd_cpu() and has_intel_cpu() as partials.
2021-10-21Remove useless initialization of mem_info = {}Richard Neumann
2021-10-21Update type hintsRichard Neumann
meminfo() returns ints.
2021-10-15Fix use_mirrorsOleksandr Zinkevych
2021-10-15Fix re_rank_mirrorsOleksandr Zinkevych
2021-09-21Fix Bug: 'Suggest partition layout' crashesHugo Ankarloo
File: lib/user_interaction.py When function manage_new_and_existing_partitions() is used, and 'Suggest partition layout' is selected, the installer crashes. REASON Bug was introduced in commit 9e67ce3, when partition layout was changed to use device.path as keys (instead of device). It seems all necessary changes were made for this, except this one.
2021-09-20Merge branch 'master' into svintooo-fixHugo Ankarloo
Sync branch svintooo-fix with latest code changes on master.
2021-09-20Fix Bug: Cannot get partuuid from loop deviceHugo Ankarloo
File: lib/disk.py When installing on a loopback device (a.k.a loop device), function Filesystem.partuuid_to_index() crashes with a JSON parsing error. REASON 1) For loop devices, the property BlockDevice.device returns the actual image file (back-file) of the loop device instead of the /dev/X device. 2) Function Filesystem.partuuid_to_index() executes `lsblk --json` against BlockDevice.device . 3) `lsblk` fails and prints the error "not a block device" to stderr. This causes the output to not be valid JSON. 4) Code crashes when JSON parser tries to parse the output. SOLUTION - Make sure property BlockDevice.device only returns a valid block device. - Create new function BlockDevice.device_or_backfile that mimics the present behaviour of BlockDevice.device. - Use BlockDevice.device_or_backfile in function BlockDevice.__repr__(). SOLUTION REASONING I can only see one reason behind BlockDevice.device returning the back-file of a loop device, and that is to show the back-file to the user (instead of /dev/X) when printing the string representation of a BlockDevice. All other parts of the code can use the /dev/X file just fine. And IMO it makes more sense that a property named `device` only returns devices, and not normal files.
2021-09-20Fix Bug: Set filesystem crashes if no partitionsHugo Ankarloo
File: lib/user_interaction.py When function manage_new_and_existing_partitions() is used, and no partitions are configured, and 'Set desired filesystem for a partition' is selected, the installer crashes.
2021-09-20Fix Bug: config b0rked by Suggest partition layoutHugo Ankarloo
File: lib/user_interaction.py When function manage_new_and_existing_partitions() is used, and 'Suggest partition layout' is selected, the partition info is not correctly stored in the config. Instead of: {"partitions": [{...}, {...}]} You get: {"partitions": {"partitions": [{...}, {...}], "wipe":True}}