opensc initrd hook requires dpkg-architecture

Bug #1908827 reported by Judd Tracy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
opensc (Ubuntu)
New
Low
Unassigned

Bug Description

When adding smartcard support to unlocking a LUKS encrypted volume in initrd the update of initrd fails because the hook '/usr/share/initramfs-tools/hooks/cryptopensc' uses the command dpkg-architecture to determine the architecture of the libraries to copy into initrd. The package does not have a dependency(dpkg-dev) to install the package that contains dpkg-architecture.

I would also say that there really should not be a dependency on dpkg-dev for opensc either since it pulls in lots of development software that is not needed for most systems.

# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.15.0-76-generic
/usr/share/initramfs-tools/hooks/cryptopensc: 54: /usr/share/initramfs-tools/hooks/cryptopensc: dpkg-architecture: not found
E: /usr/share/initramfs-tools/hooks/cryptopensc failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.15.0-76-generic with 1.

Versions:
Ubuntu 18.04
opensc 0.17.0-3 amd64

Tags: bionic
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, the package is coming from Debian so maybe you could also report the issue there?

Changed in opensc (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.