summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shutdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/shutdown b/shutdown
index b0934b7..a14e479 100644
--- a/shutdown
+++ b/shutdown
@@ -13,6 +13,8 @@ stop_device() {
devtype=$(lsblk -drno TYPE "/dev/$1" 2>/dev/null) || return 1
case $devtype in
crypt)
+ # dmsetup could be used here, but we don't know that it
+ # exists.
read devname <"$1/dm/name"
cryptsetup remove "$devname"
;;