summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-11-28 19:52:56 +0100
committerDave Reisner <dreisner@archlinux.org>2012-11-28 19:52:56 +0100
commit6be2f369ac9756ff257b11cd7b4fe8f23c9510c3 (patch)
treeaede1e184b713062f504e94cb0fb38da1c27f7e8
parent47b5d5ef4eb6c2803e61890949fd7e9ab2164796 (diff)
downloadmkinitcpio-6be2f369ac9756ff257b11cd7b4fe8f23c9510c3.tar.gz
mkinitcpio-6be2f369ac9756ff257b11cd7b4fe8f23c9510c3.tar.xz
shutdown: leave a comment about cryptsetup v. dmsetup
Remind myself why we can't merge these so I'm not tempted to do this again in the future. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-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"
;;