]> git.ipfire.org Git - thirdparty/systemd.git/commit
homework: explicitly close cryptsetup context, to not keep loopback device busy
authorLennart Poettering <lennart@poettering.net>
Mon, 17 Aug 2020 20:09:04 +0000 (22:09 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 18 Aug 2020 10:41:26 +0000 (12:41 +0200)
commitdf14bda2b5de8ea022a915774c5a4e4660e421b6
tree9d0d9a9325ad0fdc5635f4590348ef31243af2b9
parent6d7b47eb3eb71b37c768e588173f2c8169e953e7
homework: explicitly close cryptsetup context, to not keep loopback device busy

The cryptsetup context pins the loop device even after deactivation.
Let's explicitly release the context to make sure the subsequent
loopback device detaching works cleanly.
src/home/homework-luks.c