[pkg-cryptsetup-devel] Bug#776409: cryptsetup fails to unlock volumes with key files from initramfs
Guilhem Moulin
guilhem at guilhem.org
Thu Dec 10 09:43:35 UTC 2015
Hi Ben,
On Fri, 10 Apr 2015 at 02:40:53 +0100, Ben Hutchings wrote:
> cryptsetup needs to adjust the key file paths when unlocking volumes
> from the initramfs, because at this point the 'real' root filesystem is
> mounted at /root.
Can we really assume in the hook file that the roofs will be mounted
onto /root? Indeed the current /usr/share/initramfs-tools/init seems to
suggest that (it's mounted onto $rootmnt which is constant and set to
/root). But this is what initramfs-tools(8) says about rootmnt:
Exported variables
init sets several variables for the boot scripts environment.
[…]
rootmnt
is the path where root gets mounted usually /root.
Please consider changing the wording (eg, removing “usually”) if we can
safely make this assumption in hook files.
Cheers,
--
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20151210/f5f73483/attachment.sig>
More information about the pkg-cryptsetup-devel
mailing list