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.
signature.asc
Description: PGP signature

