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


Groups > linux.debian.kernel > #59748

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

From Nicolas George <george@nsup.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#885160: initramfs-tools-core: hooks/resume includes ephemeral encrypted swaps
Date 2017-12-25 11:00 +0100
Message-ID <v0xI5-1Zc-1@gated-at.bofh.it> (permalink)
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

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.

Regards,

-- 
  Nicolas George


-- System Information:
Debian Release: buster/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable'), (50, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages initramfs-tools-core depends on:
ii  cpio         2.12+dfsg-6
ii  klibc-utils  2.0.4-9
ii  kmod         24-1
ii  udev         236-1

Versions of packages initramfs-tools-core recommends:
ii  busybox  1:1.27.2-2

Versions of packages initramfs-tools-core suggests:
pn  bash-completion  <none>

-- Configuration Files:
/etc/initramfs-tools/initramfs.conf changed:
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=gzip
DEVICE=
NFSROOT=auto


-- no debconf information

Back to linux.debian.kernel | Previous | NextNext 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