aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-16 12:58:27 +0300
committerCem Keylan <cem@ckyln.com>2020-05-16 12:58:27 +0300
commita26f2f9a233cb19e4f0706aef696107fa467d016 (patch)
tree461f4a049c2d50fbc729c713301e542ec5d34d3f /rc.shutdown
parent388801aaaff3e8e22e94a7ff2b8825c7d7eb9ff5 (diff)
downloadinit-a26f2f9a233cb19e4f0706aef696107fa467d016.tar.gz
rc.shutdown: remove cryptsetup
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown10
1 files changed, 0 insertions, 10 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 51321c7..c74bee1 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -39,16 +39,6 @@ out "Remounting rootfs as readonly"; {
sync
}
-out "Deactivating dmcrypt devices (if any exist)."; {
- [ -x /bin/cryptsetup ] && [ -x /bin/dmsetup ] && {
- dmsetup ls --target crypt \
- --exec "dmsetup info -c --noheadings -o open,name" |
- while read -r drive; do
- [ "${drive%%:*}" = "0" ] && cryptsetup close "${drive##*:}"
- done
- }
-}
-
run_hook post.shutdown
case "$1" in reboot) shalt r ;; poweroff) shalt p; esac