From 457e38b24337769ab3c1dfb970f1bb9376626c25 Mon Sep 17 00:00:00 2001 From: wolfboxpen <98444921+wolfboxpen@users.noreply.github.com> Date: Sat, 24 Dec 2022 17:20:36 +0000 Subject: functions: inform user that encrypted volume was successfully closed effectively informs user that encryption key(s) have been securely erased prior to potentially rebooting which would leave memory energized --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions') 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 -- cgit 1.4.1