Control: tags -1 moreinfo On Tue, 07 May 2024 16:14:30 +0200 Roderich Schupp <roderich.sch...@gmail.com> wrote: > Package: systemd > Version: 256~rc1-1~exp2 > Severity: important > X-Debbugs-Cc: roderich.sch...@gmail.com > > I have a standard LUKS-encrypted root partition. > I upgraded systemd to v256 and ran update-initramfs. > I rebooted into the kernel with the updated initramfs, > but plymouth (instead of prompting for the password) now hangs and > just shows "cryptsetup: Waiting for encrypted source device > UUID=a75ad289-6ad8-4ac3-aebc-34a94cff72e4" > > I was able to boot into an older kernel with its initramfs built with the > previous version of systemd (255.5-1) and the diffed the two initrd.img. > Turns out that the initramfs built for v256 was missing some shared libraries > (see below for a list). For v255 these where linked by libsystemd.so.0 > or udevadm, but in v256 these libs are dlopen'ed, hence update- initramfs > doesn't detect them. > > As a workaround I dropped the following into > /etc/initramfs-tools/hooks/add-libs-for-systemd and reran update- initramfs: > > --- > #!/bin/sh > > set -e > > case "$1" in > prereqs) > exit 0 > ;; > esac > > . /usr/share/initramfs-tools/hook-functions > > copy_exec /usr/lib/x86_64-linux-gnu/libgcrypt.so.20 > copy_exec /usr/lib/x86_64-linux-gnu/libgpg-error.so.0 > copy_exec /usr/lib/x86_64-linux-gnu/libkmod.so.2 > copy_exec /usr/lib/x86_64-linux-gnu/liblz4.so.1
Which one of those libraries actually did make the difference, and what was the error message? -- Kind regards, Luca Boccassi
signature.asc
Description: This is a digitally signed message part