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 Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:14 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
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
https://bbs.archlinux.org/viewtopic.php?id=269655


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

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:14 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/cryptsetup/issues/3

Loading...