[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#885160: initramfs-tools-core: hooks/resume includes ephemeral encrypted swaps



Control: tag -1 moreinfo

On Mon, 2017-12-25 at 10:13 +0100, Nicolas George wrote:
> Package: initramfs-tools-core
> Version: 0.130
> Severity: normal
> 
> Dear Maintainer,
> 
> The script /usr/share/initramfs-tools/hooks/resume will detect the UUID the
> current swap device and include it in conf/conf.d/zz-resume-auto.
> 
> I do not use suspend/resume and my swap is encrypted using an ephemeral key,
> defined in /etc/crypttab as:
> 
> aimlin-tempswap /dev/mapper/aimlin-swap /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256
> 
> It is a rather common and documented setup. Because of that, the swap device
> will never have the same UUID.
> 
> That causes scripts/local-block to wait for a long time before giving up.
> 
> The problem can be fixed adding RESUME=none in
> /etc/initramfs-tools/initramfs.conf, but it took me a while to find the
> reason and fix it. At least some documentation or warning needs to be
> included.

You should see a message about this every time update-initramfs runs.

If you can suggest a reliable way to identify such swap partitions,
then we may be able to exclude them.

Ben.

-- 
Ben Hutchings
The world is coming to an end.	Please log off.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: