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

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



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

Attachment: signature.asc
Description: Digital signature


Reply to: