[pkg-cryptsetup-devel] Bug#901830: cryptsetup-initramfs: warning after upgrade cryptsetup-initramfs (update-initramfs -u / boot process)

Antonio antdev66 at gmail.com
Tue Jun 19 14:06:40 BST 2018


Thank for your reply.

The boot problem is that you include file "/lib/cryptsetup/functions"
[scripts: hooks/cryptgnupg, hooks/cryptopensc, hooks/cryptroot under
/usr/share/initramfs-tools] but when generate initramfs is updated and the
system rebooted, the file "lib/cryptsetup/functions" not exists in this
context.

For fix this, I created a simple hook (view below) and I updated initramfs
(update-initramfs -u).

Now, when boot, no error occour.


File /usr/share/initramfs-tools/hooks/fix-cryptsetup:

#!/bin/sh
set -eu
PREREQ=
prereqs()
{
  echo "$PREREQ"
}
case "${1:-}" in
  prereqs)
    prereqs
    exit 0
    ;;
esac
[ -r /usr/share/initramfs-tools/hook-functions ] || exit 0
. /usr/share/initramfs-tools/hook-functions

echo "fix missing file cryptsetup..."
mkdir -p $DESTDIR/lib/cryptsetup/
cp /lib/cryptsetup/functions  $DESTDIR/lib/cryptsetup/
exit 0



2018-06-19 13:43 GMT+02:00 Guilhem Moulin <guilhem at debian.org>:

> Hi Antonio,
>
> On Tue, 19 Jun 2018 at 08:31:39 +0200, Antonio wrote:
> > $ 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
> > 'crypsetup-initramfs' package in order to disable the cryptsetup
> initramfs
> > integration and avoid this warning.
>
> This warning is intentional if you have devices that need to be unlocked
> at initramfs stage (for instance devices required to unlock the root FS).
>
> Is that a false positive in your case?  Were there devices that were
> unlocked at initramfs stage before, now making your system unbootable?
>
> Or is this bug about the error when sourcing /lib/cryptsetup/functions
> from the cryptroot initramfs boot script?  It's harmless, but also easy
> to fix.
>
>     https://salsa.debian.org/cryptsetup-team/cryptsetup/commit/
> 71cbd49edd15e3431ea9974587291d8293e39f68
>
> --
> Guilhem.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-cryptsetup-devel/attachments/20180619/1b640ce6/attachment.html>


More information about the pkg-cryptsetup-devel mailing list