Mandos-client failing when run inside initramfs of Ubuntu 24.04
Teddy Hogeborn
teddy at recompile.se
Sun Nov 3 16:34:10 CET 2024
Pablo Abelenda <pabelenda at igalia.com> writes:
> I'm having a similar problem in Debian trixie, running mandos-client
> 1.8.17. This is returning an empty line:
>
> ```
> dpkg-query --showformat='${Version}\n' --show libgpgme11t64 libgpgme11
> 2>/dev/null | head --lines=1
> ```
>
> If I remove the head I got the two lines, one empty, one with the
> version of libgpgme11t64:
>
> ```
> dpkg-query --showformat='${Version}\n' --show libgpgme11t64 libgpgme11
> 2>/dev/null
>
> 1.18.0-6+b1
> ```
>
> At the beginning I just moved forward by removing libgpgme11 out of
> the dpkg-query statement but I ended up writing this. Hope it's
> useful:
>
> ```
> # GPGME needs GnuPG
> gpg=/usr/bin/gpg
>
> libgpgme11_package=libgpgme11
> codename=`lsb_release -cs`
> if [ "$codename" = "trixie" ] || [ "$codename" = "noble" ]
> then
> libgpgme11_package=libgpgme11t64
> fi
>
> libgpgme11_version="`dpkg-query --showformat='${Version}\n' --show
> $libgpgme11_package 2>/dev/null | head --lines=1`"
> ```
Thank you for the report! Fixed in trunk.
/Teddy Hogeborn
--
The Mandos Project
https://www.recompile.se/mandos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 861 bytes
Desc: not available
URL: <http://mail.recompile.se/pipermail/mandos-dev/attachments/20241103/8146e248/attachment.sig>
More information about the Mandos-Dev
mailing list