diff options
author | Cem Keylan <cem@ckyln.com> | 2020-05-16 12:58:27 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-05-16 12:58:27 +0300 |
commit | a26f2f9a233cb19e4f0706aef696107fa467d016 (patch) | |
tree | 461f4a049c2d50fbc729c713301e542ec5d34d3f | |
parent | 388801aaaff3e8e22e94a7ff2b8825c7d7eb9ff5 (diff) | |
download | init-a26f2f9a233cb19e4f0706aef696107fa467d016.tar.gz |
rc.shutdown: remove cryptsetup
-rwxr-xr-x | rc.shutdown | 10 |
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 |