Since today I get the following warning when running update-initramfs -u
:
cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries
nor crypto modules. If that's on purpose, you may want to uninstall the
'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs
integration and avoid this warning.
Previously, I used cryptsetup-initramfs
to unlock my crypted data partition at boot time. But I removed this and unlock the partition manually now at every reboot (for being able to reboot my home server from remote).
When trying to uninstall cryptsetup-initramfs
, it wants to deinstall cryptsetup
also. But I need this for the manual unlock, I strongly assume:
me@myserver:~$ sudo apt remove cryptsetup-initramfs
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete werden ENTFERNT:
cryptsetup cryptsetup-initramfs
0 aktualisiert, 0 neu installiert, 2 zu entfernen und 0 nicht aktualisiert.
Nach dieser Operation werden 210 kB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n] n
Abbruch.
me@myserver:~$
So, what to do? Just ignore the warning? Generally, I don't like warnings that are "normal" ... :D
Tried to apply the proposed solution from the answers:
me@myserver:~$ LANG=C sudo apt-mark manual cryptsetup
cryptsetup was already set to manually installed.
me@myserver:~$ LANG=C sudo apt remove cryptsetup-initramfs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
cryptsetup-run
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
cryptsetup cryptsetup-initramfs
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 210 kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
me@myserver:~$
LANG=C
when sharing error messages.