Initramfs configuration hook overlayroot sets CRYPTSETUP=1

Bug #1720036 reported by Alexandru Panoiu
112
This bug affects 24 people
Affects Status Importance Assigned to Milestone
cloud-initramfs-tools (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Running Ubuntu Server 17.10 preview downloaded from cdimages.ubuntu.com.

update-initramfs produces a warning complaining that CRYPSETUP should not be set in /etc/initramfs.conf, but in /etc/cryptsetup-initramfs/conf-hook. This happens with or without full disk encryption.

$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.13.0-12-generic
WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead.

Further investigation showed that the warning is produced by the script /usr/share/initramfs-tools/hooks/cryptroot, part of package cryptsetup. The warning is caused by the configuration file /usr/share/initramfs-tools/conf-hooks.d/overlayroot, part of the package overlayroot, which sets CRYPTSETUP=1. Both packages are dependencies on ubuntu-server and get installed by default.

$ lsb_release -rd
Description: Ubuntu Artful Aardvark (development branch)
Release: 17.10

$ apt-cache policy overlayroot
overlayroot:
  Installed: 0.39ubuntu1
  Candidate: 0.39ubuntu1
  Version table:
 *** 0.39ubuntu1 500
        500 http://ro.archive.ubuntu.com/ubuntu artful/main i386 Packages
        100 /var/lib/dpkg/status

$ apt-cache policy cryptsetup
cryptsetup:
  Installed: 2:1.7.3-4ubuntu1
  Candidate: 2:1.7.3-4ubuntu1
  Version table:
 *** 2:1.7.3-4ubuntu1 500
        500 http://ro.archive.ubuntu.com/ubuntu artful/main i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cloud-initramfs-tools (Ubuntu):
status: New → Confirmed
Scott Moser (smoser)
Changed in cloud-initramfs-tools (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.