[pkg-cryptsetup-devel] Bug#1072058: Bug#1072058: Bug#1017542: systemd-cryptsetup at vda5_crypt.service: Control process exited, code=exited, status=1/FAILURE

Guilhem Moulin guilhem at debian.org
Mon Jun 3 00:22:04 BST 2024


On Mon, 03 Jun 2024 at 00:14:39 +0100, Luca Boccassi wrote:
> On Mon, 3 Jun 2024 at 00:09, Guilhem Moulin <guilhem at debian.org> wrote:
>> On Sun, 02 Jun 2024 at 23:35:57 +0100, Luca Boccassi wrote:
>>> I gather the initramfs scripts are not calling a deferred close after
>>> mounting the rootfs in the initrd. If you add that, the device should
>>> be automatically cleaned up when the root filesystem is umounted.
>>
>> initramfs-tools doesn't take the system back on shutdown, so there is
>> nothing src:cryptsetup can do here.
> 
> The deferred close is given on the initrd though, immediately after
> mounting, which I think is done by the cryptsetup initramfs hook?
> Deferred close means that it will be closed by the kernel once the
> last mount is gone. So if you call that from the initramfs hook,
> things should work out automatically on shutdown.

I see, thanks for the explanation.  The cryptsetup initramfs scripts are
currently only involved at pre-mount stage and do not try to mount
anything, but we could add another one at post-mount stage for this.

-- 
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-cryptsetup-devel/attachments/20240603/1838b812/attachment.sig>


More information about the pkg-cryptsetup-devel mailing list