Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#72174 - [cryptsetup] sd-encrypt needs /usr/lib/systemd/systemd-makefs to create swap

Attached to Project: Arch Linux
Opened by nl6720 (nl6720) - Sunday, 19 September 2021, 12:05 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 24 September 2021, 20:07 GMT
Task Type Bug Report
Category Packages: Core
Status Assigned
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No


The sd-encrypt hook adds the mkswap binary to the initramfs to allow creating encrypted swap, but this is not enough. systemd-cryptsetup additionally requires the /usr/lib/systemd/systemd-makefs binary.

systemd[190]: systemd-cryptsetup@swap.service: Failed to locate executable /usr/lib/systemd/systemd-makefs: No such file or directory
systemd[190]: systemd-cryptsetup@swap.service: Failed at step EXEC spawning /usr/lib/systemd/systemd-makefs: No such file or directory
systemd[1]: systemd-cryptsetup@swap.service: Control process exited, code=exited, status=203/EXEC
systemd[1]: systemd-cryptsetup@swap.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Cryptography Setup for swap.
systemd[1]: Dependency failed for Local Encrypted Volumes.

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any
systemd 249.4-1
cryptsetup 2.4.1-1

Steps to reproduce:
* Configure /etc/mkinitcpio.conf to use systemd and sd-encrypt hooks.
* Create /etc/crypttab.initramfs and add something like:

swap PARTLABEL=swap /dev/urandom swap,cipher=aes-xts-plain64,size=512

* Regenerate the initramfs and reboot.
This task depends upon