Warnings about cryptsetup on new Ubuntu 17.10 installation?

16,968

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.

Share:
16,968

Related videos on Youtube

RocketNuts
Author by

RocketNuts

Updated on September 18, 2022

Comments

  • RocketNuts
    RocketNuts over 1 year

    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?

  • RocketNuts
    RocketNuts over 6 years
    Thanks. swapon -s shows this, I suppose that's good? (or is the 'Used' column being 0 bad news?)
  • AlexP
    AlexP over 6 years
    It's perfectly fine. (Swap space should be available in order to avoid bad things happening if all RAM is used up, but the system won't actually use it unless it needs it.)