[pkg-cryptsetup-devel] suspend-pre.service: Unable to locate executable '/usr/bin/cryptsetup': No such file or directory
Guilhem Moulin
guilhem at debian.org
Tue Sep 8 09:34:57 BST 2026
Hi,
On Mon, 07 Sep 2026 at 17:55:34 +0100, José Medeiros wrote:
> @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
That .service file does not come from the cryptsetup source package.
> 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*.*
No, we ship cryptsetup(8) in /usr/sbin (or /sbin before merged-/usr) not
/usr/bin. You need to your custom .service file to point to the right
location. Consistency is only important within the source package,
there is no guarantee that external wrappers and and unit files will
work outside of the box.
--
Guilhem.
More information about the pkg-cryptsetup-devel
mailing list