FS#71247 - cryptsetup 2.3.6-1 produces mkinitcpio error w/ sd-encrypt hook

Attached to Project: Arch Linux
Opened by notmemberanymore (aljazzair) - Sunday, 13 June 2021, 12:31 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 13 June 2021, 13:35 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Running mkinitcpio -P produces the following error message during the sd-encrypt phase.

> **==> ERROR: file not found: `'**

This error started to appear after a recent upgrade of cryptsetup:

[2021-06-07T17:36:12+0100] [ALPM] upgraded cryptsetup (2.3.5-4 -> 2.3.6-1)

Downgrading to cryptsetup 2.3.5 eliminates the error message.


Additional info:

* package version(s)
cryptsetup 2.3.6.1

* config and/or log files etc.
mkinitcpio.conf relevant lines:
# HOOKS
HOOKS=(systemd autodetect modconf sd-vconsole keyboard sd-plymouth sd-encrypt block sd-zfs filesystems)
* link to upstream bug report, if any

Steps to reproduce:
1) setup mkinitcpio to use the sd-encrypt hook
2) update cryptsetup to 2.3.6.1
3) mkinitcpio is run automatically at the end of the pacman installation and produces the following error:


[2021-06-07T17:37:47+0100] [ALPM-SCRIPTLET] -> Running build hook: [sd-encrypt]
[2021-06-07T17:37:48+0100] [ALPM-SCRIPTLET] ==> ERROR: file not found: `'
[2021-06-07T17:37:48+0100] [ALPM-SCRIPTLET] -> Running build hook: [block]


4) Running mkinitcpio with verbose shows the following lines under sd-encrypt hook related messages.
This is just an excerpt including relevant lines, the full log is linked below.

-> Running build hook: [/usr/lib/initcpio/install/sd-encrypt]**
adding module: dm-crypt (/lib/modules/5.10.41-1-MANJARO/kernel/drivers/md/dm-crypt.ko.xz)
(...)
adding module: adiantum (/lib/modules/5.10.41-1-MANJARO/kernel/crypto/adiantum.ko.xz)
adding module: wp512 (/lib/modules/5.10.41-1-MANJARO/kernel/crypto/wp512.ko.xz)
adding file: /usr/lib/udev/rules.d/10-dm.rules
adding file: /usr/bin/dmsetup
adding file: /usr/lib/libdevmapper.so.1.02
==> ERROR: file not found: `'
overwriting file: /usr/bin/dmsetup
adding file: /usr/lib/udev/rules.d/13-dm-disk.rules
adding file: /usr/lib/udev/rules.d/60-fido-id.rules
adding file: /usr/lib/udev/fido_id
(...)
adding file: /usr/sbin/mkswap
adding file: /etc/crypttab
-> Running build hook: [/usr/lib/initcpio/install/block]
adding module: sr_mod (/lib/modules/5.10.41-1-MANJARO/kernel/drivers/scsi/sr_mod.ko.xz)
(...)
==> WARNING: errors were encountered during the build. The image may not be complete.


This bug was first reported on manjaro forums, was advised by a more senior member of the forum to open a bug here.
Hope that's OK.
.
Here is a link to the full thread for more detailef logs:
https://forum.manjaro.org/t/confirmed-bug-w-cryptsetup-mkinitcpio-error-related-to-sd-encrypt-error-file-not-found/70038/4
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 13 June 2021, 13:35 GMT
Reason for closing:  Works for me
Additional comments about closing:  This is not the Manjaro bug tracker

Loading...