about summary refs log tree commit diff
path: root/functions
diff options
context:
space:
mode:
authorwolfboxpen <98444921+wolfboxpen@users.noreply.github.com>2022-12-24 17:20:36 +0000
committerclassabbyamp <5366828+classabbyamp@users.noreply.github.com>2023-04-13 22:02:15 -0400
commit457e38b24337769ab3c1dfb970f1bb9376626c25 (patch)
tree3baaa7b73accbbc0bd4947df2a074eb00f28c0d9 /functions
parent08e0e2a87dbc3dffafa05054067cba2697890f26 (diff)
downloadrunit-void-457e38b24337769ab3c1dfb970f1bb9376626c25.tar.gz
runit-void-457e38b24337769ab3c1dfb970f1bb9376626c25.tar.xz
runit-void-457e38b24337769ab3c1dfb970f1bb9376626c25.zip
functions: inform user that encrypted volume was successfully closed 20230413
effectively informs user that encryption key(s) have been securely
erased prior to potentially rebooting which would leave memory energized
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index daed329..ec961fc 100644
--- a/functions
+++ b/functions
@@ -47,7 +47,7 @@ deactivate_crypt() {
     if [ -x /sbin/dmsetup -o -x /bin/dmsetup ]; then
         msg "Deactivating Crypt Volumes"
         for v in $(dmsetup ls --target crypt --exec "dmsetup info -c --noheadings -o open,name"); do
-            [ ${v%%:*} = "0" ] && cryptsetup close ${v##*:}
+            [ ${v%%:*} = "0" ] && cryptsetup close ${v##*:} && msg "[crypt] successfully closed: ${v##*:}"
         done
         deactivate_vgs "Crypt"
     fi