[pkg-cryptsetup-devel] Bug#933059: Debian Buster with encrypted root on degraded raid1 (md-raid)

Guilherme G. Piccoli gpiccoli at canonical.com
Wed Jul 8 19:51:48 BST 2020


Hi Magnus, Markus and Javier - thanks for the reports, and special
thanks Magnus for the patch.

I've came up with a different approach [0] - initramfs-tools provides a
retry mechanism in which scripts are able to run multiple times on
local-block stage. The mdadm script that implements such "poor man's
last resource" (i.e., the degrading array assemble) runs in local-block
stage, but cryptroot fails right upfront in local-top, preventing mdadm
scripts from starting the array.

My approach (patch attached here) relies in changing cryptroot in order
it fails gracefully on local-top and allows local-block script to run.
It'll then be executed itself on local-block, and decrypt the volume
successfully.

Test results with my patch and reviews are greatly appreciated!
Cheers,


Guilherme


[0]https://salsa.debian.org/cryptsetup-team/cryptsetup/-/merge_requests/18
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-d-initramfs-cryptroot-script-Allow-some-retries-on-l.patch
Type: text/x-patch
Size: 8235 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-cryptsetup-devel/attachments/20200708/8763b9a3/attachment.bin>


More information about the pkg-cryptsetup-devel mailing list