Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/luks.py
AgeCommit message (Collapse)Author
2021-04-08Added a safety check to verify that the encrypted partition exists at least ↵Anton Hvornum
before trying to open it.
2021-04-05Removed a TODO commentAnton Hvornum
2021-04-03This should correct #135. I'll have to investigate other places where this ↵Anton Hvornum
logic might be as well and correct those.
2021-04-02Join cryptsetup args using shlexPyfisch
Ensure that all arguments are properly quoted. Improve readability by using long-form arguments only. Use identical arguments for both cryptsetup calls, to prevent them from accidentally diverging in future commits.
2021-04-01Missing variableAnton Hvornum
This should fix #135
2021-03-29Added support for flushing a BlockDevice() cache after a partition has been ↵Anton Hvornum
formatted. This is to avoid internal confusion of which partitions are encrypted or not when going from Encrypted -> Un-encrypted setups.
2021-03-14Using 'umount -R' rather than just 'umount' since we're going to wipe the ↵Anton Hvornum
partition, we need do unmount anything that's mounted beneeth it to continue.
2021-03-14Removed redundant error handling as well as added some more debug logs.Anton Hvornum
2021-03-14Enhanced the error handling on crypt-devices.Anton Hvornum
2021-03-14Some more error handling.Anton Hvornum
2021-03-14Tweaked SysCallError() exception to include the exit code in a machine ↵Anton Hvornum
readable manner. Since it's useful as an indicator where calls might go wrong and for what reason.
2021-03-14Added a partition.umount() and a check when running cryptsetup if the disk ↵Anton Hvornum
is in use.
2021-03-09Carried over the allow_formatting from the parent device of luks2() devices.Anton Hvornum
2021-03-09Forgot to set a variableAnton Hvornum
2021-03-09Added option to skip autodetection of filesystem. This is so for instance ↵Anton Hvornum
luks2() can override any auto-detection that revers back to the parent device of the mapped device, which would be crypto_LUKS instead of None for the inner partition.
2021-03-09Added some debugging.Anton Hvornum
2021-03-09Fixed luks2().close() to properly detect it's own mapped pathAnton Hvornum
2021-03-09Fixed luks2().close() to properly detect it's own pathAnton Hvornum
2021-03-09Added functions to auto-detect filesystems inside encrypted partitions ↵Anton Hvornum
(given a password)
2021-03-09Adding encryption helpers to the Partition() class, that sets up and ↵Anton Hvornum
utilizes luks2.encrypt() in extension.
2021-03-08Reworked the guided partitioning logic to better match new expectations of ↵Anton Hvornum
flexability. Still some work to be done and features to be implemented, but the structure is taking place
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-01-24Added debug output as well as corrected output formatting in log().Anton Hvornum
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
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-07-08Trying to sort out a boot issueAnton Hvornum
2020-07-07Added colored output. Also tested non-encrypted installations and added ext4 ↵Anton Hvornum
support.
2020-07-06Reworked final preparations for working with profiles and installing them.Anton Hvornum