[pkg-cryptsetup-devel] cryptsetup and hibernation

Guilhem Moulin guilhem at debian.org
Mon Mar 27 01:21:19 BST 2023


On Mon, 27 Mar 2023 at 02:09:31 +0200, Christoph Anton Mitterer wrote:
> Wouldn't it make sense to document that somewhere ... or did I just not
> find it? ^^
> I could provide a patch if you like... in README.Debian?

The resume script is supplied in src:initramfs-tools, and the stage at
which it is run is AFAICT currently undocumented there, so we can't rely
on it in src:cryptsetup documentation either (I don't see how it could
be moved elsewhere, but it remains at the discretion of the initramfs-tools
maintainers).

>> The order is not documented so may not be be relied on, but IIRC from
>> the top of my head the devices backing / are recursively (depth-first
>> traversal of the block device tree, lexicographic order) opened
>> first,
>> then those for /usr, then those for the resume device(s), and finally
>> those marked with the ‘initramfs’ keyword set (in the order specified
>> in
>> crypttab(5)).
>
> I assume you want to keep it "undefined"?

Yeah, unless you can give a good reason to document that.  The good
thing about not documenting internals is that we retain the freedom to
shuffle things around should the need arise at some point :-)

-- 
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/20230327/c977e460/attachment.sig>


More information about the pkg-cryptsetup-devel mailing list