Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #59751

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

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#885160: initramfs-tools-core: hooks/resume includes ephemeral encrypted swaps
Date 2017-12-25 12:00 +0100
Message-ID <v0yE9-2zp-3@gated-at.bofh.it> (permalink)
References <v0xI5-1Zc-1@gated-at.bofh.it> <v0xI5-1Zc-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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.

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#885160: initramfs-tools-core: hooks/resume includes ephemeral encrypted swaps Nicolas George <george@nsup.org> - 2017-12-25 11:00 +0100
  Processed: Re: Bug#885160: initramfs-tools-core: hooks/resume  includes ephemeral encrypted swaps "Debian Bug Tracking System" <owner@bugs.debian.org> - 2017-12-25 12:00 +0100
  Bug#885160: initramfs-tools-core: hooks/resume includes ephemeral encrypted swaps Ben Hutchings <ben@decadent.org.uk> - 2017-12-25 12:00 +0100
    Bug#885160: initramfs-tools-core: hooks/resume includes ephemeral encrypted swaps Nicolas George <george@nsup.org> - 2017-12-25 14:00 +0100
      Bug#885160: initramfs-tools-core: hooks/resume includes ephemeral encrypted swaps Ben Hutchings <ben@decadent.org.uk> - 2017-12-25 22:20 +0100
  Bug#885160: marked as done (initramfs-tools-core: hooks/resume  includes ephemeral encrypted swaps) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2018-07-19 03:00 +0200

csiph-web