🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #6391

Bug#1155516: systemd-cryptsetup@.service prevents clean shutdown

#6391
From: Anonymous
Date: Fri, 27 Nov 2026 07:40
128 lines
6522 bytes
Package: systemd-cryptsetup
Version: 262.2-1
Severity: important
X-Debbugs-Cc: dbrown@schutzwerk.com

Dear Maintainer,

for at least a couple of weeks (maybe longer) I have faced the issue that my
computer does not cleanly shutdown. During shutdown, I can see systemd messages
about services being stopped but then the screen turns blank and the computer
remains in this state indefinitely, until I manually force the shutdown by
holding the power button.

Based on entries in journalctl, I believe the problem is related to the
following messages:

-------------------------------------------------------------------------
-- Boot f9b165899062431b848d130ee75444da --
Nov 26 08:27:23 my_hostname systemd[1]: Starting systemd-
cryptsetup@sda3_crypt.service - Cryptography Setup for sda3_crypt...
Nov 26 08:27:23 my_hostname systemd-cryptsetup[1064]: Volume sda3_crypt already
active.
Nov 26 08:27:23 my_hostname systemd[1]: Finished systemd-
cryptsetup@sda3_crypt.service - Cryptography Setup for sda3_crypt.
Nov 26 17:31:02 my_hostname systemd[1]: Stopping systemd-
cryptsetup@sda3_crypt.service - Cryptography Setup for sda3_crypt...
Nov 26 17:31:02 my_hostname systemd-cryptsetup[441100]: Device sda3_crypt is
still in use.
Nov 26 17:31:02 my_hostname systemd-cryptsetup[441100]: Failed to deactivate
'sda3_crypt': Device or resource busy
Nov 26 17:31:02 my_hostname systemd[1]: systemd-cryptsetup@sda3_crypt.service:
Control process exited, code=exited, status=1/FAILURE
Nov 26 17:31:02 my_hostname systemd[1]: systemd-cryptsetup@sda3_crypt.service:
Failed with result 'exit-code'.
Nov 26 17:31:02 my_hostname systemd[1]: Stopped systemd-
cryptsetup@sda3_crypt.service - Cryptography Setup for sda3_crypt.
-------------------------------------------------------------------------

I see them for basically every boot in the recent entries. sda3_crypt
corresponds to my encrypted root filesystem:

-------------------------------------------------------------------------
$ cat /etc/crypttab
sda3_crypt UUID=c0eaa786-4d28-4443-8836-54819471742b none luks,discard
-------------------------------------------------------------------------
The UUID matches the UUID of the automatically generated service:

-------------------------------------------------------------------------
$ sudo systemctl cat systemd-cryptsetup@sda3_crypt.service
# /run/systemd/generator/systemd-cryptsetup@sda3_crypt.service
# Automatically generated by systemd-cryptsetup-generator

[Unit]
Description=Cryptography Setup for %I
Documentation=man:crypttab(5) man:systemd-cryptsetup-generator(8) man:systemd-
cryptsetup@.service(8)
SourcePath=/etc/crypttab

DefaultDependencies=no
After=cryptsetup-pre.target systemd-udevd-kernel.socket systemd-udevd.service
systemd-tpm2-setup-early.service
Before=blockdev@dev-mapper-%i.target
Wants=blockdev@dev-mapper-%i.target
IgnoreOnIsolate=true
Conflicts=umount.target
Before=umount.target
Before=cryptsetup.target
BindsTo=dev-disk-
by\x2duuid-c0eaa786\x2d4d28\x2d4443\x2d8836\x2d54819471742b.device
After=dev-disk-
by\x2duuid-c0eaa786\x2d4d28\x2d4443\x2d8836\x2d54819471742b.device

[Service]
Type=oneshot
RemainAfterExit=yes
TimeoutSec=infinity
KeyringMode=shared
OOMScoreAdjust=500
ImportCredential=cryptsetup.*
ExecStart=/usr/bin/systemd-cryptsetup attach 'sda3_crypt' '/dev/disk/by-
uuid/c0eaa786-4d28-4443-8836-54819471742b' 'none' 'luks,discard'
ExecStop=/usr/bin/systemd-cryptsetup detach 'sda3_crypt'
-------------------------------------------------------------------------

I have not changed anything in my settings related to LUKS, so I believe this
is a bug. I use the device for work, so I unfortunately cannot downgrade the
systemd-cryptsetup package for testing currently. But if I can provide any
other information that aids in debugging, please let me know.

A colleague of mine who also runs Debian unstable is experiencing the same
problem.

Kind regards,
David


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 7.3.5+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd-cryptsetup depends on:
ii  libc6              2.43-7
ii  libcryptsetup12    2:2.8.9-1
ii  libsystemd-shared  262.2-1

Versions of packages systemd-cryptsetup recommends:
ii  libmount1   2.42.4-1
ii  libssl3t64  3.6.5-1

Versions of packages systemd-cryptsetup suggests:
ii  libfido2-1               1.17.0-2
ii  libp11-kit0              0.26.6-2
ii  libpwquality1            1.4.5-5+b3
ii  libqrencode4             4.1.1-2+b2
ii  libtss2-esys-3.0.2-0t64  4.2.1-1
ii  libtss2-mu-4.0.1-0t64    4.2.1-1
ii  libtss2-rc0t64           4.2.1-1
ii  libtss2-tcti-device0t64  4.2.1-1

-- no debconf information
Technical Details
Message-ID: <O3YIN-eql2-25@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Anonymous <dbrown@schutzwerk.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155516: systemd-cryptsetup@.service prevents clean shutdown
Date: Fri, 27 Nov 2026 08:40:01 +0100
Message-ID: <O3YIN-eql2-25@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Nov 27 07:33:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Anonymous <dbrown@schutzwerk.com>, 1155516@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: dbrown@schutzwerk.com, pkg-systemd-maintainers@lists.alioth.debian.org
X-Debian-Pr-Message: report 1155516
X-Debian-Pr-Package: systemd-cryptsetup
X-Debian-Pr-Source: systemd
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0+nmu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005333
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 128
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 27 Nov 2026 08:29:58 +0100
X-Original-Message-ID: <179576459861.48300.13847582190094899820.reportbug@sw-c-063>