Public bug reported:
On every shutdown or reboot, systemd-cryptsetup fails to deactivate the
LUKS encrypted device containing the root filesystem, logging "Device or
resource busy" errors.
Error messages in journal:
systemd-cryptsetup[724097]: Device dm_crypt-0 is still in use.
systemd-cryptsetup[724097]: Failed to deactivate 'dm_crypt-0': Device or
resource busy
systemd[1]: systemd-cryptsetup@dm_crypt\x2d0.service: Control process exited,
code=exited, status=1/FAILURE
systemd[1]: systemd-cryptsetup@dm_crypt\x2d0.service: Failed with result
'exit-code'.
Install Ubuntu 26.04 with encrypted LVM (standard installer option: "Guided -
use entire disk and set up encrypted LVM")
Complete installation and reboot
Reboot or shutdown the system
Check previous boot logs: sudo journalctl -b -1 | grep -E
"(cryptsetup|dm_crypt-0)"
It seems like systemd-cryptsetup attempts to detach the LUKS device
while it is still in use, causing the error on every shutdown. The
system eventually shuts down after the error.
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: systemd 259.5-0ubuntu3
ProcVersionSignature: Ubuntu 7.0.0-15.15-generic 7.0.0
Uname: Linux 7.0.0-15-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
Date: Mon May 11 17:13:32 2026
InstallationDate: Installed on 2026-04-26 (16 days ago)
InstallationMedia: Ubuntu-Server 26.04 "Resolute Raccoon" - Release amd64
(20260420.1)
MachineType: LENOVO 1066AJU
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-7.0.0-15-generic
root=/dev/mapper/ubuntu--vg-ubuntu--lv ro
rd.luks.key=/luks/usb_keyfile:UUID=1b6d77f7-1a51-4316-8969-186acf70a5a4
rd.luks.key.tout=30 rd.retry=30 rd.timeout=60
crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/22/2011
dmi.bios.release: 1.66
dmi.bios.vendor: LENOVO
dmi.bios.version: 44CN42WW
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: Emerald Lake
dmi.board.vendor: LENOVO
dmi.board.version: FAB1
dmi.chassis.asset.tag: Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: 0.1
dmi.ec.firmware.release: 1.41
dmi.modalias:
dmi:bvnLENOVO:bvr44CN42WW:bd09/22/2011:br1.66:efr1.41:svnLENOVO:pn1066AJU:pvrLenovoV570:rvnLENOVO:rnEmeraldLake:rvrFAB1:cvnLENOVO:ct10:cvr0.1:skuSystemSKUNumber:pfaHuronRiverSystem:
dmi.product.family: HuronRiver System
dmi.product.name: 1066AJU
dmi.product.sku: System SKUNumber
dmi.product.version: Lenovo V570
dmi.sys.vendor: LENOVO
modified.conffile..etc.systemd.logind.conf: [modified]
mtime.conffile..etc.systemd.logind.conf: 2026-04-28T19:39:21.480001
** Affects: systemd (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2152224
Title:
systemd-cryptsetup fails to deactivate LUKS device on shutdown with
LVM-on-LUKS root filesystem
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2152224/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs