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-03-08Removing part of the old formatting scheme. New implementation roughly 80% done.Anton Hvornum
2021-03-08Tweaked logging slightly.Anton Hvornum
2021-03-08Added some debugging.Anton Hvornum
2021-03-08Added some debugging.Anton Hvornum
2021-03-08Added some debugging.Anton Hvornum
2021-02-17Implemented #106 in branch skip-partitioning. Also moving the disk_password ↵Anton Hvornum
from being a local variable to a BlockDevice setting/variable.
2021-02-11Reworked the way partition formatting works. As well as added some flags to ↵Anton Hvornum
the partition if it's locked/unlocked for partitioning. By defaults partitions will now be in a locked state - prohibiting formatting unless set or overridden in the formatting call. This allows us to selectively format partitions individually later on. There's also a target_mountpoint that is the desired relative mount point inside a installation. This can be pre-pended with the installation base directory during mount. These changes also function as indicators for the installation (and guided installation) for which partitions to use and/or wipe. If an entire drive is selected for wiping, these changes will have no affect in the decision making as all partitions will be new and have formatable set to true.
2021-02-07Added a dummy function call to grab the partition fstype, since unmounted ↵Anton Hvornum
filesystems won't return the fstype obviously.
2021-02-07Reworked fault handling a bitAnton Hvornum
2021-02-07Added error handling for BlockDevice() that was given no information.Anton Hvornum
2021-02-07Corrected two variables.Anton Hvornum
2021-02-07Added error handling for get_mount_info()Anton Hvornum
2021-02-07Added a default no-info value to BlockDevice()Anton Hvornum
2021-02-07Moved the output of the current fileformat structure in guided, as well as ↵Anton Hvornum
added an option to supress the log message from format() in order to hide (for users) the some what confusing formating of /dev/null.
2021-02-07Added a check in guided to make it more visible that we check for filesystem ↵Anton Hvornum
supportation.
2021-02-07Added correct exception handling to the pre-format check.Anton Hvornum
2021-02-07Fixed correct variable usage for path when formatting, enabling temporary ↵Anton Hvornum
override.
2021-02-07Renamed fat32 to vfat to work more seamlessly with findmnt and other tools ↵Anton Hvornum
that report fat32 as vfat
2021-02-07Quotation issueAnton Hvornum
2021-02-07Added an early check for filesystem compatability. Since we need to handle ↵Anton Hvornum
unique packages etc for certain filesystem formats. This early check can be caught and ignored if the programmer/user wants to override the check and continue anyway. But the default should be to stop all execution to not install a half-working system.
2021-02-07Added some more failsafe's to the Partition() object.Anton Hvornum
2021-02-07Yielding actual partitions and not just the partition number :)Anton Hvornum
2021-02-07Made BlockDevices() iterable, iterting over each partitionAnton Hvornum
2021-02-07Added partition info on Partition() creation. This will help detect ↵Anton Hvornum
potential mountpoints as well as filesystem types if any
2021-02-07Added the ability to check if a harddrive has any mountpoint related to a ↵Anton Hvornum
given parameter.
2021-02-07Created has_partitions() on BlockDevice'sAnton Hvornum
2021-01-26Merge pull request #90 from Reiddragon/masterAnton Hvornum
Added basic F2FS support
2021-01-24Trying to centralize the configuration for logging. Phasing out some ↵Anton Hvornum
parameters which also affects the current ability to create multiple log files for multiple runs. This will be re-introduced when logging is made into a class object in a later version
2021-01-22Added basic F2FS supportReid
2021-01-22fixed tabs and spaces problemadvaithm
2021-01-22xfs as partition optionadvaithm
2021-01-21Fixes #88 - ext4 paritions incorrectly labeledAnton Hvornum
2020-12-07Potential solution for #67Anton Hvornum
It's a 0.025 second sleep waiting for the partition to pop up in partprobe. Also added a grace period of 10 seconds for that to occur. Otherwise we'll throw an exception since something most likely broke down. (Note here: Older drives, say 6200 RPM spin disks, might take a few seconds to come online. Have no such hardware to test with, but worth testing)
2020-12-07Final verification of issueAnton Hvornum
2020-12-07Removed debuggingAnton Hvornum
2020-12-07Tweaked debugging a bitAnton Hvornum
2020-12-07Update disk.pyAnton Hvornum
2020-12-07Removing one debug step to debug deeper.Anton Hvornum
2020-12-07Spelling errorAnton Hvornum
2020-12-07Adding some debugging for #67Anton Hvornum
2020-12-06Fix for last commitAnton Hvornum
2020-12-06Mixup with the variableAnton Hvornum
2020-12-06selecting disk by id/size should return a BlockDevice()Anton Hvornum
2020-12-06Attempting to select drives by size and/or idAnton Hvornum
2020-11-04Forgot an import of storage.Anton Hvornum
2020-11-04Added multiple log features.Anton Hvornum
* [Reintroduced](https://github.com/Torxed/archinstall/blob/f64a605449f59c677dff39962f1cb46616d893b7/archinstall.py#L57-L71) log levels * Created a global log file definition * Optional support for `python-systemd`'s journald handler. * Optional file output that has a globally configurable definition, that archinstall will honor in `archinstall.storage['logfile']`.
2020-10-19Fix some PEP-8 errors.Varun Madiath
2020-10-18Forgot an import, as well as made BlockDevice() have less verbose output on ↵Anton Hvornum
json.dumps.
2020-07-21Created a __dump__ function in BlockDevice. Can be used to safely dump the ↵Anton Hvornum
class into a JSON object. Building a json_encoder which checks if the object hasattr(obj, '__dump__') before calling would be ideal
2020-07-08Added a encrypted flag to the Partition() object. So that certain checks can ↵Anton Hvornum
be done by the Installer() later on, for instance when adding a bootloader. There's also a now which tries to find the parent device to the unlocked encrypted device.