archinstall/archinstall/lib/disk
Clinton Phillips 7b8fec1af4
fix(luks): surface cryptsetup error output when unlock fails (#4570)
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.
2026-06-06 18:38:36 +10:00
..
__init__.py Integrate new arguments data structure (#3167) 2025-02-20 07:35:59 +11:00
device_handler.py Refactor logging and formatting logic (#4542) 2026-05-19 17:48:03 +02:00
disk_menu.py Refactor logging and formatting logic (#4542) 2026-05-19 17:48:03 +02:00
encryption_menu.py Refactor logging and formatting logic (#4542) 2026-05-19 17:48:03 +02:00
fido.py Refactor logging and formatting logic (#4542) 2026-05-19 17:48:03 +02:00
filesystem.py Refactor logging and formatting logic (#4542) 2026-05-19 17:48:03 +02:00
luks.py fix(luks): surface cryptsetup error output when unlock fails (#4570) 2026-06-06 18:38:36 +10:00
lvm.py Refactor logging and formatting logic (#4542) 2026-05-19 17:48:03 +02:00
partitioning_menu.py Refactor logging and formatting logic (#4542) 2026-05-19 17:48:03 +02:00
subvolume_menu.py Pull `ui` module one level up (#4515) 2026-05-03 23:54:42 +02:00
utils.py Refactor logging and formatting logic (#4542) 2026-05-19 17:48:03 +02:00