Luks2.unlock() ran 'cryptsetup open' with no error handling, so a failure raised a bare CalledProcessError. Python renders that exception with only the exit status and discards the captured output, so cryptsetup's stderr (merged into stdout by run()) never reached the install log. encrypt() already wraps its cryptsetup call and raises a DiskError that includes the captured output. Mirror that for unlock() so a failure reports the actual cryptsetup message instead of an opaque traceback. Reported in #4327, where the underlying 'device-mapper: crypt: unknown table type' error was hidden from the log for this reason. |
||
|---|---|---|
| .. | ||
| applications | ||
| default_profiles | ||
| lib | ||
| locales | ||
| scripts | ||
| tui | ||
| __init__.py | ||
| __main__.py | ||
| examples | ||
| main.py | ||