[pkg-cryptsetup-devel] suspend-pre.service: Unable to locate executable '/usr/bin/cryptsetup': No such file or directory
José Medeiros
8fy552sm at gmail.com
Mon Sep 7 17:55:34 BST 2026
Hello. I have been dealing with some nvme errors, mainly because the
filesystem it isn't closed correctly. I have 2 nvme disks Luks encrypted,
in one of them I have a encrypted swap partition, also I have tuned my
Debian 13 Trixie to suspend-then-hibernate.
When is going to enter in suspend phase it calls the suspend-pre.service
systemd-unit to close the open Luks volumes, and the message that I could
catch on journalctl -b -1 was
set 02 00:35:46 debian systemd[1]: Starting suspend-pre.service - Close
LUKS before suspend...
set 02 00:35:46 debian (yptsetup)[405339]: suspend-pre.service: Failed at
step EXEC spawning /usr/bin/cryptsetup: No such file or directory
set 02 00:35:46 debian systemd[1]: suspend-pre.service: Main process
exited, code=exited, status=203/EXEC
set 02 00:35:46 debian systemd[1]: suspend-pre.service: Failed with result
'exit-code'.
set 02 00:35:46 debian systemd[1]: Failed to start suspend-pre.service -
Close LUKS before suspend.
set 02 00:35:46 debian systemd[1]: Reached target sleep.target - Sleep.
set 02 00:35:46 debian systemd[1]: Starting
systemd-suspend-then-hibernate.service - System Suspend then Hibernate...
Then I went to search for cryptsetup binary and it only exists in the
following paths
@debian:/usr/bin$ ls | grep cryptsetup
systemd-cryptsetup
@debian:/usr/bin$ cat /etc/systemd/system/suspend-pre.service
[Unit]
Description=Close LUKS before suspend
Before=sleep.target
[Service]
Type=oneshot
ExecStart=/usr/bin/cryptsetup luksClose DADOS
[Install]
WantedBy=sleep.target
@debian:/usr/bin$ whereis cryptsetup
cryptsetup: /usr/sbin/cryptsetup /usr/lib/x86_64-linux-gnu/cryptsetup
/usr/lib/cryptsetup /usr/share/cryptsetup
/usr/share/man/man8/cryptsetup.8.gz
I haven't (as far I can remember) touched the systemd-unit
*suspend-pre.service* by hand, so I believe that a symlink from
*/usr/sbin/cryptsetup* -> */usr/bin/cryptsetup *would be great*.*
Thank you.
--
Joseph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-cryptsetup-devel/attachments/20260907/a6bc917e/attachment.htm>
More information about the pkg-cryptsetup-devel
mailing list