From a26f2f9a233cb19e4f0706aef696107fa467d016 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sat, 16 May 2020 12:58:27 +0300 Subject: rc.shutdown: remove cryptsetup --- rc.shutdown | 10 ---------- 1 file changed, 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 -- cgit v1.2.3