12

I have just downloaded and installed a fresh Ubuntu 17.10 server system.

Upon running sudo apt update and sudo apt upgrade I happened to notice these two warnings:

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.

and

cryptsetup: WARNING: target cryptswap1 has a random key, skipped

I have no idea what this is, but I would like to prevent any trouble in the future. Note that I'm using full disk encryption, I assume this has to do with that. If I check the /etc/initramfs-tools/initramfs.conf file, the string crypt does not occur at all.

What am I supposed to do? And the fact that my swap partition is using a random key (at least that's how I interpret that warning), it that supposed to be the case? If not, how do I fix that?

1 Answers1

15

The first warning is due to conflicting settings in packages overlayroot and cryptsetup. (CRYPTSETUP is set by a hook, /usr/share/initramfs-tools/conf-hooks.d/overlayroot, that's why you did not find it in initramfs.conf.) I have opened a bug on this issue. Don't worry about it, it is purely cosmetic.

The second warning comes from the way the installer sets up swap space. If swapon -s shows that your swap space is active, then you can ignore it.

AlexP
  • 10,435