Re: How to resume decryption on LUKS1 in-place

xndr <[email protected]> Mon, 4 Mar 2024 14:51:52 +0000
Newsgroups dev.linux.lists.cryptsetup
Message-ID <[email protected]>
For the record:-

     $: cryptsetup -V
     cryptsetup 2.6.1 flags: UDEV BLKID KEYRING KERNEL_CAPI

     $: apt show cryptsetup
     Package: cryptsetup
     Version: 2:2.6.1-4~deb12u2

We see the latest stable version on GitLab is now 2.7.0; is it still
recommended to rollback to 2.4.3?

As for raising a bug, we'd do so willingly but unfortunately this is not
possible as GitLab no longer allow us to use our  GitHub profile.

:-(

Thanks again though.

On 04/03/2024 10:59, Ondrej Kozina wrote:
> On 01/03/2024 14:12, xndr wrote:
>> Thank you for the assist.
>>
>> We've taken the advice to migrate the data to a backup and after
>> reattempted using the command:-
>>
>> cryptsetup reencrypt --decrypt
>> --uuid=LUKS-aaecbfc4-459a-4cf9-9a34-fd4af43b8be0  /dev/sdd
>>
>> This returns:-
>>
>> Device /dev/sdd is not a valid LUKS device.
>
> Ok, this is a bug (regression in fact) in cryptsetup v2.5.0 which is
> not yet fixed.
>
> The most straightforward workaround would be to install cryptsetup
> v2.4.3 and run following command using legacy cryptsetup-reencrypt
> utility:
>
> "cryptsetup-reencrypt --decrypt --uuid
> aaecbfc4-459a-4cf9-9a34-fd4af43b8be0  /dev/sdd"
>
> (no need to add 'LUKS-' prefix in --uuid parameter).
>
> I'll figure out a fix for it (feel free to open issue on
> https://gitlab.com/cryptsetup/cryptsetup if interested).
>
> Thank you for the feedback!
> Ondrej
>
>