http://bugzilla.opensuse.org/show_bug.cgi?id=1142848 Bug ID: 1142848 Summary: systemd-cryptsetup - wrong shutdown order Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.1 Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: andihartmann@freenet.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- On shutdown, cryptsetup is stopped before deactivation of all components provided by cryptsetup. The architecture is pretty simple: 1 disk, 2 partitions: # fdisk -l Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 321535 319488 156M 83 Linux /dev/sda2 321536 468860927 468539392 223.4G 8e Linux LVM sda1 is the boot partition. sda2 is a crypted LVM partition, which provides one LVM group containing: - /dev/ssd/opt - /dev/ssd/homex - /dev/ssd/srv - /dev/ssd/usrx - /dev/ssd/rootx - swap-partition # mount /dev/mapper/ssd-rootx on / type xfs (rw,noatime,attr2,inode64,noquota) /dev/mapper/ssd-usrx on /usr type xfs (rw,noatime,attr2,inode64,noquota) /dev/mapper/ssd-srv on /srv type ext4 (rw,noatime) /dev/mapper/ssd-opt on /opt type ext4 (rw,noatime) /dev/sda1 on /boot type ext4 (rw,noatime) /dev/mapper/ssd-homex on /home type xfs (rw,noatime,attr2,inode64,noquota) Jul 25 14:19:37 notebook2 systemd[1]: Stopped Security Auditing Service. Jul 25 14:19:37 notebook2 systemd[1]: Stopped target Local File Systems. Jul 25 14:19:37 notebook2 systemd[1]: Unmounting /srv... Jul 25 14:19:37 notebook2 systemd[1]: Unmounting /opt... Jul 25 14:19:37 notebook2 systemd[1]: Unmounting /run/user/1000... Jul 25 14:19:37 notebook2 systemd[1]: Unmounting /boot... Jul 25 14:19:37 notebook2 systemd[1]: Unmounting /home... Jul 25 14:19:37 notebook2 systemd[1]: Unmounting /usr... Jul 25 14:19:37 notebook2 systemd[1]: usr.mount: Mount process exited, code=exited status=32 Jul 25 14:19:37 notebook2 systemd[1]: Failed unmounting /usr. Jul 25 14:19:37 notebook2 systemd[1]: Stopped File System Check on /dev/ssd/usrx. Jul 25 14:19:37 notebook2 systemd[1]: Unmounted /run/user/1000. Jul 25 14:19:37 notebook2 systemd[1]: Stopped target Swap. Jul 25 14:19:37 notebook2 systemd[1]: Deactivating swap /dev/mapper/ssd-swap... Jul 25 14:19:37 notebook2 systemd[1]: Unmounted /srv. Jul 25 14:19:37 notebook2 systemd[1]: Stopped File System Check on /dev/ssd/srv. Jul 25 14:19:37 notebook2 systemd[1]: Unmounted /opt. Jul 25 14:19:37 notebook2 systemd[1]: Stopped File System Check on /dev/ssd/opt. Jul 25 14:19:37 notebook2 systemd-cryptsetup[4324]: Failed to deactivate: Device or resource busy ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 25 14:19:37 notebook2 systemd[1]: systemd-cryptsetup@cr_sda2.service: Control process exited, code=exited status=1 Jul 25 14:19:37 notebook2 systemd[1]: Stopped Cryptography Setup for cr_sda2. Jul 25 14:19:37 notebook2 systemd[1]: systemd-cryptsetup@cr_sda2.service: Unit entered failed state. Jul 25 14:19:37 notebook2 systemd[1]: systemd-cryptsetup@cr_sda2.service: Failed with result 'exit-code'. Jul 25 14:19:37 notebook2 systemd[1]: Removed slice system-systemd\x2dcryptsetup.slice. Jul 25 14:19:37 notebook2 kernel: XFS (dm-6): Unmounting Filesystem Jul 25 14:19:37 notebook2 systemd[1]: Unmounted /boot. Jul 25 14:19:37 notebook2 systemd[1]: Stopped File System Check on /dev/sda1. Jul 25 14:19:38 notebook2 systemd[1]: Unmounted /home. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 25 14:19:38 notebook2 systemd[1]: Stopped File System Check on /dev/ssd/homex. Jul 25 14:19:38 notebook2 systemd[1]: Removed slice system-systemd\x2dfsck.slice. Jul 25 14:19:38 notebook2 systemd[1]: Stopped target Local File Systems (Pre). Jul 25 14:19:38 notebook2 systemd[1]: Stopped Remount Root and Kernel File Systems. Jul 25 14:19:38 notebook2 systemd[1]: Stopping Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling... Jul 25 14:19:38 notebook2 systemd[1]: Stopped Create Static Device Nodes in /dev. Jul 25 14:19:38 notebook2 systemd[1]: Reached target Shutdown. Jul 25 14:19:38 notebook2 systemd[1]: Stopped Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling. Jul 25 14:19:38 notebook2 systemd[1]: Closed LVM2 metadata daemon socket. Jul 25 14:19:38 notebook2 systemd[1]: Deactivated swap /dev/mapper/ssd-swap. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 25 14:19:38 notebook2 systemd[1]: Deactivated swap /dev/disk/by-uuid/4abebe49-168f-4cb0-aef1-ad3b3650fd28. Jul 25 14:19:38 notebook2 systemd[1]: Deactivated swap /dev/disk/by-id/dm-uuid-LVM-6jSqdHo9xTpEAG0MOTnWL0Lh43eQn0uA2CJ5IbEFv0v3oRWXVqcF2m2ucZEmgfeA. Jul 25 14:19:38 notebook2 systemd[1]: Deactivated swap /dev/disk/by-id/dm-name-ssd-swap. Jul 25 14:19:38 notebook2 systemd[1]: Deactivated swap /dev/dm-1. Jul 25 14:19:38 notebook2 systemd[1]: Deactivated swap /dev/ssd/swap. Jul 25 14:19:38 notebook2 systemd[1]: Reached target Unmount All Filesystems. Jul 25 14:19:38 notebook2 systemd[1]: Reached target Final Step. As you can see, systemd-cryptsetup fails, because it is running *before* deactivating of all components provided by cryptsetup - this must fail! -- You are receiving this mail because: You are on the CC list for the bug.