Warnings about cryptsetup on new Ubuntu 17.10 installation?
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.
Related videos on Youtube
RocketNuts
Updated on September 18, 2022Comments
-
RocketNuts over 1 year
I have just downloaded and installed a fresh Ubuntu 17.10 server system.
Upon running
sudo apt update
andsudo 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 stringcrypt
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 over 6 yearsThanks.
swapon -s
shows this, I suppose that's good? (or is the 'Used' column being 0 bad news?) -
AlexP over 6 yearsIt'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.)