[pkg-cryptsetup-devel] Bug#774647: Bug#774647: cryptsetup on initramfs does not support key files (resume swap on LVM)

Guilhem Moulin guilhem at guilhem.org
Sat Dec 19 23:39:06 UTC 2015


Grmbl, in fact I didn't test it properly: the resume device was mounted
by systemd not by the initramfs image.  This seems to be due to the
current init which requires all node devices to be present before the
rootfs is being mounted, as found in initramfs-tools(8):

	local-top OR nfs-top After these scripts have been executed, the root
	device node is expected to be present (local) or the network interface is
	expected to be usable (NFS).

	local-block These scripts are called with the name of a local block
	device. After these scripts have been executed, that device node should be
	present. If the local-top or local-block scripts fail to create the wanted
	device node, the local-block scripts will be called periodically to try
	again.

	local-premount OR nfs-premount are run after the sanity of the root device
	has been verified (local) or the network interface has been brought up
	(NFS), but before the actual root fs has been mounted.

	local-bottom OR nfs-bottom are run after the rootfs has been mounted
	(local) or the NFS root share has been mounted.

So I guess we'll have to mount the roofs read-only in a temporary
directory, and unmount it afterwards.

-- 
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/20151220/56c7dee8/attachment.sig>


More information about the pkg-cryptsetup-devel mailing list